mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
nf-deploy build trailing args
This commit is contained in:
parent
da57393ff1
commit
4878720686
1 changed files with 5 additions and 1 deletions
|
|
@ -19,7 +19,11 @@ NF_HOST=${NF_HOST-tewi}
|
|||
NIXOS_TOPLEVEL=network.nodes.nixos.$NF_HOST.system.build.toplevel
|
||||
|
||||
if [[ $1 = build ]]; then
|
||||
exec nix build --no-link --print-out-paths $NF_CONFIG_ROOT\#$NIXOS_TOPLEVEL "${TRUSTED_ARGS[@]}"
|
||||
shift
|
||||
exec nix build --no-link --print-out-paths \
|
||||
$NF_CONFIG_ROOT\#$NIXOS_TOPLEVEL \
|
||||
"${TRUSTED_ARGS[@]}" \
|
||||
"$@"
|
||||
elif [[ $1 = switch ]] || [[ $1 = test ]] || [[ $1 = dry-* ]]; then
|
||||
METHOD=$1
|
||||
shift
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue