Fix kill mode for rebuild services

This commit is contained in:
Inex Code 2022-04-29 15:19:38 +03:00
parent 289b715873
commit a5b57d378d

View file

@ -92,6 +92,7 @@ in
serviceConfig = {
User = "root";
ExecStart = "${pkgs.nixos-rebuild}/bin/nixos-rebuild switch";
KillMode = "none";
};
};
# One shot systemd service to upgrade NixOS using nixos-rebuild
@ -105,6 +106,7 @@ in
serviceConfig = {
User = "root";
ExecStart = "${pkgs.nixos-rebuild}/bin/nixos-rebuild switch --upgrade";
KillMode = "none";
};
};
# One shot systemd service to rollback NixOS using nixos-rebuild
@ -118,6 +120,7 @@ in
serviceConfig = {
User = "root";
ExecStart = "${pkgs.nixos-rebuild}/bin/nixos-rebuild switch --rollback";
KillMode = "none";
};
};
};