feat: add optional argument to just switch
This commit is contained in:
4
justfile
4
justfile
@@ -3,8 +3,8 @@ default:
|
|||||||
@just --list
|
@just --list
|
||||||
|
|
||||||
# rebuild and switch
|
# rebuild and switch
|
||||||
switch:
|
switch config="":
|
||||||
nixos-rebuild switch --flake . --sudo
|
nixos-rebuild switch --flake .{{ if config != "" { "#" + config } else { "" } }} --sudo
|
||||||
|
|
||||||
# fetch flake inputs
|
# fetch flake inputs
|
||||||
sync:
|
sync:
|
||||||
|
|||||||
Reference in New Issue
Block a user