Skip to content

Commit

Permalink
feat: add --special-arg option
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnvgr authored and mergify[bot] committed Feb 29, 2024
1 parent f34ad8b commit 2c9562e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nixos-generate
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Options:
* -o, --out-link: specify the outlink location for nix-build
* --cores : to control the maximum amount of parallelism. (see nix-build documentation)
* --option : Passed to nix-build (see nix-build documentation).
* --special-arg : Passed to the `specialArgs` variable
* -I KEY=VALUE: Add a key to the Nix expression search path.
USAGE
}
Expand Down Expand Up @@ -83,6 +84,10 @@ while [[ $# -gt 0 ]]; do
nix_build_args+=("--argstr" "diskSize" "$2")
shift
;;
--special-arg)
nix_build_args+=("--argstr" "$2" "$3")
shift 2
;;
--option)
nix_build_args+=("$1" "$2" "$3")
shift 2
Expand Down

0 comments on commit 2c9562e

Please sign in to comment.