add startup script

This commit is contained in:
2025-06-01 15:51:40 -04:00
parent 56cc36194d
commit 7834c8226a
2 changed files with 16 additions and 4 deletions

View File

@ -43,6 +43,7 @@ let
};
in
{
virtualisation.oci-containers.containers = {
deluge = delugeBase // {
image = "binhex/arch-deluge";
@ -68,7 +69,7 @@ in
ENABLE_PRIVOXY = "yes";
LAN_NETWORK = "192.168.0.0/16";
#NAME_SERVERS = "194.242.2.9";
NAME_SERVERS = "9.9.9.9";
#NAME_SERVERS = "9.9.9.9";
# note, delete /config/perms.txt to force a bulk permissions update
};
environmentFiles = [ config.sops.secrets."docker/delugevpn".path ];
@ -106,6 +107,16 @@ in
};
sops.secrets = (genSopsConfOvpn "se.protonvpn.udp.ovpn") // {
"docker/delugevpn".owner = "docker-service";
"docker/delugevpn" = {
owner = "docker-service";
group = "users";
restartUnits = [ "docker-delugeVPN.service" ];
};
"docker/protonvpn-start-script" = {
path = "${delugevpn_path}/config/scripts/protonvpn-start-script.sh";
owner = "docker-service";
group = "users";
restartUnits = [ "docker-delugeVPN.service" ];
};
};
}