nixos: set to false: restartIfChanged and unitConfig.X-StopOnRemoval

This commit is contained in:
Alexander Tomokhov 2023-12-28 04:58:30 +04:00
parent e8cd9d4b72
commit 679137386d

View file

@ -101,6 +101,8 @@ in
KillMode = "none"; KillMode = "none";
SendSIGKILL = "no"; SendSIGKILL = "no";
}; };
restartIfChanged = false;
unitConfig.X-StopOnRemoval = false;
script = '' script = ''
# sync top-level flake with sp-modules sub-flake # sync top-level flake with sp-modules sub-flake
# (https://github.com/NixOS/nix/issues/9339) # (https://github.com/NixOS/nix/issues/9339)
@ -125,8 +127,10 @@ in
KillMode = "none"; KillMode = "none";
SendSIGKILL = "no"; SendSIGKILL = "no";
}; };
restartIfChanged = false;
unitConfig.X-StopOnRemoval = false;
script = '' script = ''
# FIXME get URL from systemd parameter # TODO get URL from systemd parameter
nix flake update \ nix flake update \
--override-input selfprivacy-nixos-config git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes --override-input selfprivacy-nixos-config git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes
@ -151,6 +155,8 @@ in
KillMode = "none"; KillMode = "none";
SendSIGKILL = "no"; SendSIGKILL = "no";
}; };
restartIfChanged = false;
unitConfig.X-StopOnRemoval = false;
}; };
}; };
} }