cachix-agent: properly handle not restarting the service

This commit is contained in:
Domen Kožar 2022-06-29 17:17:35 -05:00
parent fe306509ce
commit c7b135ac8e

View file

@ -45,8 +45,11 @@ in {
after = ["network-online.target"];
path = [ config.nix.package ];
wantedBy = [ "multi-user.target" ];
# don't restart while changing
reloadIfChanged = true;
restartIfChanged = false;
unitConfig.X-StopOnRemoval = false;
environment.USER = "root";
serviceConfig = {
Restart = "on-failure";