diff options
author | Domen Kožar <domen@dev.si> | 2022-12-27 12:24:01 +0000 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2022-12-27 12:24:01 +0000 |
commit | 3148ec4f6c088eff4f4a43f1f4e78f4418d7f5be (patch) | |
tree | 83128b413610176f380e028ce7e73762decd371d | |
parent | e37ef84b478fa8da0ced96522adfd956fde9047a (diff) |
cachix-agent: always restart
-rw-r--r-- | nixos/modules/services/system/cachix-agent/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/system/cachix-agent/default.nix b/nixos/modules/services/system/cachix-agent/default.nix index aa3b2153422c..11769d4e3095 100644 --- a/nixos/modules/services/system/cachix-agent/default.nix +++ b/nixos/modules/services/system/cachix-agent/default.nix @@ -67,7 +67,8 @@ in { serviceConfig = { # we don't want to kill children processes as those are deployments KillMode = "process"; - Restart = "on-failure"; + Restart = "always"; + RestartSec = 5; EnvironmentFile = cfg.credentialsFile; ExecStart = '' ${cfg.package}/bin/cachix ${lib.optionalString cfg.verbose "--verbose"} ${lib.optionalString (cfg.host != null) "--host ${cfg.host}"} \ |