add args for Justfile recipe
This commit is contained in:
parent
eeb1de6d55
commit
b999390cbc
1 changed files with 3 additions and 2 deletions
5
Justfile
5
Justfile
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue