diff --git a/pkgs/by-name/ni/nixos-rebuild-ng/nixos-rebuild.8.scd b/pkgs/by-name/ni/nixos-rebuild-ng/nixos-rebuild.8.scd index 610549f68204..3e04426ba66a 100644 --- a/pkgs/by-name/ni/nixos-rebuild-ng/nixos-rebuild.8.scd +++ b/pkgs/by-name/ni/nixos-rebuild-ng/nixos-rebuild.8.scd @@ -279,7 +279,7 @@ It must be one of the following: attribute path from file specified by the *--file* option. If specified without *--file* option, uses _default.nix_ in current directory. -*--flake* _flake-uri[#name]_ +*--flake* _flake-uri[#name]_, *-F* _flake-uri[#name]_ Build the NixOS system from the specified flake. It defaults to the directory containing the target of the symlink _/etc/nixos/flake.nix_, if it exists. The flake must contain an output named diff --git a/pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild/__init__.py b/pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild/__init__.py index a0e0ebed2f6e..ce7108175f0c 100644 --- a/pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild/__init__.py +++ b/pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild/__init__.py @@ -100,6 +100,7 @@ def get_parser() -> tuple[argparse.ArgumentParser, dict[str, argparse.ArgumentPa ) main_parser.add_argument( "--flake", + "-F", nargs="?", const=True, help="Build the NixOS system from the specified flake",