nixos: harden switch upgrade service guard
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
switch *args:
|
||||
if systemctl is-active --quiet nixos-upgrade.service; then sudo systemctl stop nixos-upgrade.service; fi
|
||||
case "$(systemctl show -P ActiveState nixos-upgrade.service 2>/dev/null)" in active|activating|reloading) sudo systemctl stop nixos-upgrade.service;; esac
|
||||
sudo nixos-rebuild switch --flake ".#" --impure {{args}}
|
||||
|
||||
populate-cachix cache="colonelpanic8-dotfiles" host=`hostname` *args:
|
||||
|
||||
Reference in New Issue
Block a user