mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-12 02:04:09 -05:00
26 lines
479 B
Nix
26 lines
479 B
Nix
let
|
|
volumePath = "/overseer/services";
|
|
in
|
|
{
|
|
lib,
|
|
inputs,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
lib.mkIf config.user.overseer.enable {
|
|
# Base dir
|
|
systemd.tmpfiles.rules = [
|
|
"d ${volumePath}"
|
|
"D ${volumePath}/tmp - - - 30m"
|
|
];
|
|
|
|
# NGINX Ports
|
|
networking.firewall.allowedTCPPorts = [
|
|
443
|
|
80
|
|
];
|
|
|
|
# Pin virtualisation backend to podman
|
|
virtualisation.oci-containers.backend = "podman";
|
|
}
|