Fix rollback errors and alias u to update

This commit is contained in:
Dave Gallant
2024-03-16 11:05:56 -04:00
parent 91e0f9faec
commit 6cebdc98fc

View File

@@ -1,5 +1,7 @@
set export
alias u := update
config := "machines/$(hostname)/configuration.nix"
arch := `uname -s`
@@ -9,7 +11,7 @@ rebuild:
$cmd switch --flake . -I nixos-config=$config
rollback:
$cmd switch --rollback -I nixos-config=$config
$cmd switch --rollback --flake .
update:
@./nix-flake-update.sh