mirror of
https://github.com/davegallant/nix-config
synced 2025-08-05 10:33:39 +00:00
Fix rollback errors and alias u to update
This commit is contained in:
4
justfile
4
justfile
@@ -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
|
||||
|
Reference in New Issue
Block a user