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; + }; }; }