Merge git.bitlab21.com:sam/nixos into nixvim

This commit is contained in:
Sam 2025-01-16 21:19:31 +00:00
commit cccf7012ea
1 changed files with 2 additions and 2 deletions

View File

@ -11,12 +11,12 @@ update-flake-secrets:
# full system rebuild from flake (stages changes and automatically detects host)
rebuild-system:
git add *.nix
if [ -n "$(diff <(cat /etc/nixos/flake.lock) <(cat flake.lock))" ]; then echo "local flake.lock has diverged from system. Please update flake or rebase. Exiting" && exit 1; fi
sudo nixos-rebuild switch --option eval-cache false --flake .#$(hostname)
# test full system rebuild from flake (stages changes and automatically detects host)
rebuild-system-test:
git add *.nix
if [ -n "$(diff <(cat /etc/nixos/flake.lock) <(cat flake.lock))" ]; then echo "local flake.lock has diverged from system. Please update flake or rebase. Exiting" && exit 1; fi
sudo nixos-rebuild test --option eval-cache false --flake .#$(hostname)
# updates all flake inputs for system