Skip to content

Commit 507911d

Browse files
authored
Merge pull request #426 from aforemny/nix-option-all-commands
fix: Pass `--option` to all nix-* commands
2 parents d002ce9 + 53c0b6a commit 507911d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nixos-generate

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Options:
4141
* --system: specify the target system (eg: x86_64-linux)
4242
* -o, --out-link: specify the outlink location for nix-build
4343
* --cores : to control the maximum amount of parallelism. (see nix-build documentation)
44-
* --option : Passed to nix-build (see nix-build documentation).
44+
* --option : Passed to Nix commands (see nix-build documentation).
4545
* --special-arg : Passed to the "specialArgs" variable
4646
* -I KEY=VALUE: Add a key to the Nix expression search path.
4747
USAGE
@@ -103,7 +103,7 @@ while [[ $# -gt 0 ]]; do
103103
shift 2
104104
;;
105105
--option)
106-
nix_build_args+=("$1" "$2" "$3")
106+
nix_args+=("$1" "$2" "$3")
107107
shift 2
108108
;;
109109
-f | --format)

0 commit comments

Comments
 (0)