Skip to content

Commit 8bbc464

Browse files
committed
Revert "pkgs/microvm-command: accept -- nix args"
This reverts commit bb5ed0c.
1 parent bb5ed0c commit 8bbc464

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkgs/microvm-command.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ writeShellScriptBin "microvm" ''
6262
done
6363
# consume all $@ that were processed by getopts
6464
shift $((OPTIND -1))
65-
NIX_ARGS=("$@")
6665
DIR=$STATE_DIR/$NAME
6766
6867
build() {
@@ -75,15 +74,15 @@ writeShellScriptBin "microvm" ''
7574
7675
FLAKE=$(cat flake)
7776
78-
nix build "''${NIX_ARGS[@]}" -o current "$FLAKE"#nixosConfigurations."$NAME".config.microvm.declaredRunner >/dev/null
77+
nix build -o current "$FLAKE"#nixosConfigurations."$NAME".config.microvm.declaredRunner >/dev/null
7978
chmod -R u+rwX .
8079
}
8180
8281
case $ACTION in
8382
help)
8483
echo Help:
8584
cat << EOF
86-
Usage: $0 <action> [flags] [-- <nix args>]
85+
Usage: $0 <action> [flags]
8786
8887
Actions:
8988
-c <name> Create a MicroVM

0 commit comments

Comments
 (0)