Commit 7f009a16 authored by Eman Resu's avatar Eman Resu
Browse files

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

parent 22f52cc6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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",