From ada20437f4498ae76999b2fd2e094f6a8fd59f68 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Tue, 13 Dec 2022 15:51:25 +0300 Subject: [PATCH] fix systemctl command --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);