From c7b135ac8ebf53e4e2c94cc9340f6199801d42e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 29 Jun 2022 17:17:35 -0500 Subject: [PATCH] cachix-agent: properly handle not restarting the service --- nixos/modules/services/system/cachix-agent/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/system/cachix-agent/default.nix b/nixos/modules/services/system/cachix-agent/default.nix index f11d80d244d..30c0b180967 100644 --- a/nixos/modules/services/system/cachix-agent/default.nix +++ b/nixos/modules/services/system/cachix-agent/default.nix @@ -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";