feat: add optional argument to just switch

This commit is contained in:
2026-03-07 20:12:03 +01:00
parent 95bd3dc30a
commit 552196c3f9

View File

@@ -3,8 +3,8 @@ default:
@just --list
# rebuild and switch
switch:
nixos-rebuild switch --flake . --sudo
switch config="":
nixos-rebuild switch --flake .{{ if config != "" { "#" + config } else { "" } }} --sudo
# fetch flake inputs
sync: