diff --git a/flake.nix b/flake.nix index a784c86..2be065d 100644 --- a/flake.nix +++ b/flake.nix @@ -91,7 +91,7 @@ switch = lib.recurseIntoAttrs (lib.mapAttrs (hostname: machine: pkgs.writeShellScript "switch-${hostname}" '' - ${pkgs.systemd}/bin/systemctl --user restart-failed + ${pkgs.systemd}/bin/systemctl --user reset-failed ${nixos-rebuild}/bin/nixos-rebuild switch --flake .#${hostname} $@ '') localMachines);