diff --git a/modules/home-manager/sops.nix b/modules/home-manager/sops.nix index d62ff58f..3520bb9a 100644 --- a/modules/home-manager/sops.nix +++ b/modules/home-manager/sops.nix @@ -278,7 +278,7 @@ in { linux = let systemctl = config.systemd.user.systemctlPath; in '' systemdStatus=$(${systemctl} --user is-system-running 2>&1 || true) - if [[ $systemdStatus == 'running' ]]; then + if [[ $systemdStatus == 'running' || $systemdStatus == 'degraded' ]]; then ${systemctl} restart --user sops-nix else echo "User systemd daemon not running. Probably executed on boot where no manual start/reload is needed."