nixos-rebuild: add -F convenience flag for --flake

This commit is contained in:
Eman Resu
2025-11-22 13:46:49 -05:00
parent 7f009a1622
commit c1a536f34d
3 changed files with 3 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ _nixos-rebuild() {
# flakes options
--commit-lock-file
--flake # flake-uri
--flake -F # flake-uri
--override-input # input-name flake-uri
--recreate-lock-file
--update-input

View File

@@ -21,7 +21,7 @@
.br
.Op Fl -file | f Ar path
.Op Fl -attr | A Ar attrPath
.Op Fl -flake Ar flake-uri
.Op Fl -flake | F Ar flake-uri
.Op Fl -no-flake
.Op Fl -recreate-lock-file
.Op Fl -no-update-lock-file

View File

@@ -176,7 +176,7 @@ while [ "$#" -gt 0 ]; do
--no-ssh-tty)
noSSHTTY=1
;;
--flake)
--flake|-F)
flake="$1"
shift 1
;;