summary refs log tree commit diff
path: root/nixos/modules/services/system
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2023-04-18 10:58:20 +0100
committerDomen Kožar <domen@dev.si>2023-04-18 10:58:33 +0100
commit1d85cfbd778332b703846baf86350dd8dc72653e (patch)
tree455b0095a01e4b734b8bd19b8f108cd44169ce6b /nixos/modules/services/system
parentd0f57e6196da594a18b6bfd490b5497f472c8117 (diff)
downloadnixpkgs-1d85cfbd778332b703846baf86350dd8dc72653e.tar
nixpkgs-1d85cfbd778332b703846baf86350dd8dc72653e.tar.gz
nixpkgs-1d85cfbd778332b703846baf86350dd8dc72653e.tar.bz2
nixpkgs-1d85cfbd778332b703846baf86350dd8dc72653e.tar.lz
nixpkgs-1d85cfbd778332b703846baf86350dd8dc72653e.tar.xz
nixpkgs-1d85cfbd778332b703846baf86350dd8dc72653e.tar.zst
nixpkgs-1d85cfbd778332b703846baf86350dd8dc72653e.zip
cachix-watch-store: restart indefinitely
Diffstat (limited to 'nixos/modules/services/system')
-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 85e9509bcc8..89157b460b9 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";