add args for Justfile recipe

This commit is contained in:
ulic-youthlic 2025-01-24 21:29:55 +08:00
parent eeb1de6d55
commit b999390cbc
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -1,10 +1,11 @@
FLAKE_HOME := justfile_directory()
DEFAULT_SPECIALISATION := "default"
default:
@just --list
switch:
nh os switch {{FLAKE_HOME}}
switch specialisation=DEFAULT_SPECIALISATION:
nh os switch {{FLAKE_HOME}} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }}
update:
nix flake update | spacer
push host target: