cachix-agent: properly handle not restarting the service
This commit is contained in:
parent
fe306509ce
commit
c7b135ac8e
|
@ -45,8 +45,11 @@ in {
|
||||||
after = ["network-online.target"];
|
after = ["network-online.target"];
|
||||||
path = [ config.nix.package ];
|
path = [ config.nix.package ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
# don't restart while changing
|
# don't restart while changing
|
||||||
reloadIfChanged = true;
|
restartIfChanged = false;
|
||||||
|
unitConfig.X-StopOnRemoval = false;
|
||||||
|
|
||||||
environment.USER = "root";
|
environment.USER = "root";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
|
Loading…
Reference in a new issue