try systemd scope
This commit is contained in:
parent
fa00269738
commit
40c88117be
1 changed files with 12 additions and 8 deletions
|
@ -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 ];
|
||||||
|
|
Loading…
Reference in a new issue