mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 00:17:10 +00:00
Allow passing reference-lock-file for flakes
This commit is contained in:
parent
bfa7c06436
commit
59a1ffd1e8
3 changed files with 8 additions and 1 deletions
|
@ -303,7 +303,7 @@ _home-manager_completions ()
|
|||
"-L" "--print-build-logs" \
|
||||
"--show-trace" "--flake" "--substitute" "--builders" "--version" \
|
||||
"--update-input" "--override-input" "--experimental-features" \
|
||||
"--extra-experimental-features" "--refresh")
|
||||
"--extra-experimental-features" "--reference-lock-file" "--refresh")
|
||||
|
||||
# ^ « home-manager »'s options.
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ _arguments \
|
|||
'--update-input[update flake input]:NAME:()' \
|
||||
'--experimental-features[set experimental Nix features]:VALUE:()' \
|
||||
'--extra-experimental-features:[append to experimental Nix features]:VALUE:()' \
|
||||
'--reference-lock-file[flake.lock path]:VALUE:()' \
|
||||
'1: :->cmds' \
|
||||
'*:: :->args' && ret=0
|
||||
|
||||
|
@ -70,6 +71,7 @@ case "$state" in
|
|||
'--override-input[override flake input]:NAME VALUE:()' \
|
||||
'--update-input[update flake input]:NAME:()' \
|
||||
'--experimental-features[set experimental Nix features]:VALUE:()' \
|
||||
'--reference-lock-file[flake.lock path]:VALUE:()' \
|
||||
'--extra-experimental-features:[append to experimental Nix features]:VALUE:()'
|
||||
;;
|
||||
init)
|
||||
|
|
|
@ -1003,6 +1003,11 @@ while [[ $# -gt 0 ]]; do
|
|||
PASSTHROUGH_OPTS+=("$opt" "$1")
|
||||
shift
|
||||
;;
|
||||
--reference-lock-file)
|
||||
[[ -v 1 && $1 != -* ]] || errMissingOptArg "$opt"
|
||||
PASSTHROUGH_OPTS+=("$opt" "$1")
|
||||
shift
|
||||
;;
|
||||
--extra-experimental-features)
|
||||
[[ -v 1 && $1 != -* ]] || errMissingOptArg "$opt"
|
||||
PASSTHROUGH_OPTS+=("$opt" "$1")
|
||||
|
|
Loading…
Reference in a new issue