about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2023-04-18 16:26:25 +0100
committerGitHub <noreply@github.com>2023-04-18 16:26:25 +0100
commit31a3e311dacaef95a4e0b368b3625f5fa4469afa (patch)
tree73a02bef86a30150d2e568da01f54183745c4e7a /nixos
parentbca1129943168402da4730c47fdb823bec3c7493 (diff)
parent1d85cfbd778332b703846baf86350dd8dc72653e (diff)
Merge pull request #226831 from domenkozar/cachix-watch-store-restarts
cachix-watch-store: restart indefinitely
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/system/cachix-watch-store.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/system/cachix-watch-store.nix b/nixos/modules/services/system/cachix-watch-store.nix
index 85e9509bcc82d..89157b460b9a4 100644
--- a/nixos/modules/services/system/cachix-watch-store.nix
+++ b/nixos/modules/services/system/cachix-watch-store.nix
@@ -62,7 +62,13 @@ in
       after = [ "network-online.target" ];
       path = [ config.nix.package ];
       wantedBy = [ "multi-user.target" ];
+      unitConfig = {
+        # allow to restart indefinitely
+        StartLimitIntervalSec = 0;
+      };
       serviceConfig = {
+        # don't put too much stress on the machine when restarting
+        RestartSec = 1;
         # we don't want to kill children processes as those are deployments
         KillMode = "process";
         Restart = "on-failure";