try systemd scope

This commit is contained in:
Michael Huebner 2025-06-16 13:03:11 +02:00
parent fa00269738
commit 40c88117be

View file

@ -28,6 +28,18 @@ in
acceptTerms = true; acceptTerms = true;
}; };
systemd.services = {
copytmpl = {
enable = true;
path = [ pkgs.nix ];
serviceConfig = {
Type = "oneshot";
ExecStart = "cp ${./home.tmpl} /var/lib/forgejo/custom";
};
};
};
services = { services = {
nginx = { nginx = {
enable = true; enable = true;
@ -80,15 +92,7 @@ in
}; };
}; };
copytmpl = {
enable = true;
path = [ pkgs.nix ];
serviceConfig = {
Type = "oneshot";
ExecStart = "cp ${./home.tmpl} /var/lib/forgejo/custom";
};
};
openssh = { openssh = {
ports = [ 62 ]; ports = [ 62 ];