OPTNIX(1)
β¨ NAME β¨
bestie, welcome to the OPTNIX(1) page from the General Commands Manual. The name says it all: optnix β a fast options searcher for NixOS module systems π
πΈ SYNOPSIS πΈ
optnix [options] [OPTION-NAME]
π DESCRIPTION π
okay so there are a bunch of module systems that Nix users use on a daily basis:
- NixOS (the most well-known one)
- Home Manager
- nix-darwin
- flake-parts
These systems can have documentation that's genuinely hard to navigate, especially for options in external modules π
optnix solves that problem, and lets users inspect option values if possible; just like nix repl in most cases, but prettier. periodt π
π EXAMPLES π
Search for options interactively using the nixos scope:
optnix -s nixos
Search for the option programs.zsh.enable in interactive mode using the default scope:
optnix programs.zsh.enable
Search for the option programs.zsh.enable in non-interactive mode in the default scope:
optnix -n programs.zsh.enable
Display the value of programs.zsh.enable in the home-manager scope:
optnix -v -s home-manager programs.zsh.enable
Display the value of flake.nixosConfigurations in the flake-parts scope using a custom configuration file:
optnix -c ./contrib/optnix.toml -v -s flake-parts flake.apps
π¦ ARGUMENTS π¦
OPTION-NAME
Specify the name of an option to search for.
- In non-interactive mode, this argument is required, and it MUST evaluate to a valid option.
- In interactive mode, it serves as an initial input for the search bar, and is not required.
π₯ OPTIONS π₯
-c,--config <FILES>β path to extra configuration file(s) to load. To specify multiple extra configuration files to load, pass this option multiple times.-j,--jsonβ output information in JSON format. Implies non-interactive mode.-l,--list-scopesβ list available scopes and their origins (aka what configuration file they most recently were modified in) and exit.-m,--min-score <SCORE>β minimum score threshold for deeming a potential candidate a match. This option is ignored in regex mode. The lower the number is, the more search results will show up, but they may be less relevant.-n,--non-interactiveβ do not show search TUI for options. If specified,OPTION-NAMEwill become a mandatory parameter.-s,--scope <NAME>β scope name to use. If a default scope is not defined in the configuration, this parameter is required.-v,--value-onlyβ only show the value of the passed option; useful for scripting. Implies non-interactive mode.--versionβ display version information.-h,--helpβ show the help message for this command.
π AUTHORS π
Maintained by Varun Narravula <varun@snare.dev>. Up-to-date sources can be found at https://sr.ht/~watersucks/optnix, and bugs reports or patches can be submitted by email to the sr.ht mailing lists/issue tracker, or to the GitHub mirror as a pull request/issue. Prefer the former if possible.
okay that's the whole OPTNIX(1) page β dated 1980-01-01, sourced from the General Commands Manual. mwah, go search some options bestie πβ¨
π¦ where this page comes from
- nixos 26.05: optnix 0.3.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms