diff --git a/Justfile b/Justfile index 6720300..2be5b8a 100644 --- a/Justfile +++ b/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: