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() FLAKE_HOME := justfile_directory()
DEFAULT_SPECIALISATION := "default"
default: default:
@just --list @just --list
switch: switch specialisation=DEFAULT_SPECIALISATION:
nh os switch {{FLAKE_HOME}} nh os switch {{FLAKE_HOME}} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }}
update: update:
nix flake update | spacer nix flake update | spacer
push host target: push host target: