From 7e7b38d9bcd6932257c385c6e8db2719f1885436 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 27 May 2022 15:48:33 +0200 Subject: [PATCH] modules/hercules-ci-agent: do not restart via NixOS configuration switch --- modules/hercules-ci-agent/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/hercules-ci-agent/default.nix b/modules/hercules-ci-agent/default.nix index 6d7f2af..fb9aeee 100644 --- a/modules/hercules-ci-agent/default.nix +++ b/modules/hercules-ci-agent/default.nix @@ -26,7 +26,11 @@ binaryCachesPath = config.age.secrets.hci-cache-config.path; }; }; - systemd.services.hercules-ci-agent.environment = { - AWS_SHARED_CREDENTIALS_FILE = config.age.secrets.hci-cache-credentials.path; + systemd.services.hercules-ci-agent = { + # hercules-ci-agent-restarter should take care of this + restartIfChanged = false; + environment = { + AWS_SHARED_CREDENTIALS_FILE = config.age.secrets.hci-cache-credentials.path; + }; }; }