File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ writeShellScriptBin "microvm" ''
62
62
done
63
63
# consume all $@ that were processed by getopts
64
64
shift $((OPTIND -1))
65
+ NIX_ARGS=("$@")
65
66
DIR=$STATE_DIR/$NAME
66
67
67
68
build() {
@@ -74,15 +75,15 @@ writeShellScriptBin "microvm" ''
74
75
75
76
FLAKE=$(cat flake)
76
77
77
- nix build -o current "$FLAKE"#nixosConfigurations."$NAME".config.microvm.declaredRunner >/dev/null
78
+ nix build " '' ${NIX_ARGS[@]}" -o current "$FLAKE"#nixosConfigurations."$NAME".config.microvm.declaredRunner >/dev/null
78
79
chmod -R u+rwX .
79
80
}
80
81
81
82
case $ACTION in
82
83
help)
83
84
echo Help:
84
85
cat << EOF
85
- Usage: $0 <action> [flags]
86
+ Usage: $0 <action> [flags] [-- <nix args>]
86
87
87
88
Actions:
88
89
-c <name> Create a MicroVM
You can’t perform that action at this time.
0 commit comments