diff --git a/flake.lock b/flake.lock index 5af929d..5621fa9 100644 --- a/flake.lock +++ b/flake.lock @@ -388,11 +388,11 @@ ] }, "locked": { - "lastModified": 1669922957, - "narHash": "sha256-YgVI2/16JVX1VPdH0XNjUjhtBfLV2UjH9urmMq8Clpk=", + "lastModified": 1670092363, + "narHash": "sha256-88J+uN5plAW+SXnY/m3NCGlh5fdI4jxgKZlNmxFu2hQ=", "ref": "refs/heads/main", - "rev": "67c16e8ed612d40aee753927e39663b2d848eced", - "revCount": 7, + "rev": "33e6908643adeddc8fbd9ba4a0280daa0d180558", + "revCount": 8, "type": "git", "url": "https://git.pleshevski.ru/mynix/tools" }, diff --git a/flake.nix b/flake.nix index 56e2c57..90aa89c 100644 --- a/flake.nix +++ b/flake.nix @@ -82,6 +82,7 @@ switch = lib.recurseIntoAttrs (lib.mapAttrs (hostname: machine: pkgs.writeShellScript "switch-${hostname}" '' + ${pkgs.systemd}/bin/systemctl --user restart-failed ${nixos-rebuild}/bin/nixos-rebuild switch --flake .#${hostname} $@ '') localMachines);