diff --git a/hosts/mars/hermes-agent.nix b/hosts/mars/hermes-agent.nix index 8e5f688..dd26b79 100644 --- a/hosts/mars/hermes-agent.nix +++ b/hosts/mars/hermes-agent.nix @@ -369,6 +369,10 @@ in ]; requires = [ "hermes-agent-prepare-dirs.service" ]; unitConfig.RequiresMountsFor = [ "/mnt/jupiter" ]; + # prepare-dirs is an inactive oneshot, and switch-to-configuration only + # restarts ACTIVE units — so editing its script otherwise lands nowhere + # until something else happens to restart the container. + restartTriggers = [ config.systemd.services.hermes-agent-prepare-dirs.script ]; }; # The two Gitea webhook routes, written as config (not via `hermes webhook