diff --git a/nixos/modules/monitoring-agent.nix b/nixos/modules/monitoring-agent.nix index 49cbdd7..8ea9cf9 100644 --- a/nixos/modules/monitoring-agent.nix +++ b/nixos/modules/monitoring-agent.nix @@ -173,6 +173,15 @@ in }; config = { + # Their systemd user managers run permanently. Otherwise each SSH + # login (a git push as git, a CI deploy, an admin session) starts + # and stops one, and a switch that reloads user units at that moment + # fails with status 4 although the system switched; comin then + # reports the deployment as failed. + users.users = lib.genAttrs config.asxpio.security.loginUsers (_: { + linger = true; + }); + asxpio.security.loginUsers = [ "root" "asxpi"