diff options
author | azahi <azat@bahawi.net> | 2024-10-26 02:25:43 +0300 |
---|---|---|
committer | azahi <azat@bahawi.net> | 2024-10-26 02:25:43 +0300 |
commit | e3891fb855a14773774184000f143bddf9f3372f (patch) | |
tree | 46d2f5a79bffd9cf304f0f4b116a3c490e1187bf /packages/nixfiles.nix | |
parent | 2024-10-22 (diff) |
2024-10-26
Diffstat (limited to '')
-rw-r--r-- | packages/nixfiles.nix | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/packages/nixfiles.nix b/packages/nixfiles.nix index 7a4c3db..8fdd419 100644 --- a/packages/nixfiles.nix +++ b/packages/nixfiles.nix @@ -64,16 +64,6 @@ let end ') ;; - update) - if (( $# )); then - args=() - for input do args+=(--update-input "$input"); done - exec nix flake lock --refresh "''${args[@]}" "$nixfiles" - else - # https://github.com/NixOS/nix/issues/6095 - exec nix flake update -v --refresh "$nixfiles" - fi - ;; rev) if (( $# )); then expr=inputs.''${1//'/'/.inputs.}.rev @@ -146,10 +136,10 @@ let if [[ $cur == @* ]]; then _known_hosts_real -a -- "$cur" else - __compreply -W 'compare update repl eval nix-build specialise revert home boot build build-vm build-vm-with-bootloader dry-activate dry-build edit switch test' + __compreply -W 'compare repl eval nix-build specialise revert home boot build build-vm build-vm-with-bootloader dry-activate dry-build edit switch test' fi else case ''${words[1]} in - compare|update|rev) + compare|rev) __complete_nix_cmd "$cword" nix flake lock "$nixfiles" --update-input ;; repl|eval|nix-build) |