fix systemctl command

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-13 15:51:25 +03:00
parent 5fa321a5ee
commit ada20437f4
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -91,7 +91,7 @@
switch = lib.recurseIntoAttrs (lib.mapAttrs switch = lib.recurseIntoAttrs (lib.mapAttrs
(hostname: machine: pkgs.writeShellScript "switch-${hostname}" '' (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} $@ ${nixos-rebuild}/bin/nixos-rebuild switch --flake .#${hostname} $@
'') '')
localMachines); localMachines);