From 48787206865d8810885db0acb6d691dcfb1d1ea6 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Tue, 18 Apr 2023 06:03:05 -0700 Subject: [PATCH] nf-deploy build trailing args --- nixos/deploy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/deploy.sh b/nixos/deploy.sh index 11bbfec4..83895268 100755 --- a/nixos/deploy.sh +++ b/nixos/deploy.sh @@ -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