nixos-option8NixOSnixos-optioninspect a NixOS configurationnixos-optionpathoption.nameDescriptionThis command evaluates the configuration specified in
/etc/nixos/configuration.nix and returns the properties
of the option name given as argument.When the option name is not an option, the command prints the list of
attributes contained in the attribute set.OptionsThis command accepts the following options:path
This option is passed to the underlying
nix-instantiate invocation.
This option enables verbose mode, which currently is just
the Bash set debug mode.
This option causes the output to be rendered as XML.
EnvironmentNIXOS_CONFIGPath to the main NixOS configuration module. Defaults to
/etc/nixos/configuration.nix.ExamplesInvestigate option values:
$ nixos-option boot.loader
This attribute set contains:
generationsDir
grub
initScript
$ nixos-option boot.loader.grub.enable
Value:
true
Default:
true
Description:
Whether to enable the GNU GRUB boot loader.
Declared by:
"/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/boot/loader/grub/grub.nix"
Defined by:
"/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/boot/loader/grub/grub.nix"
BugsThe author listed in the following section is wrong. If there is any
other bug, please report to Nicolas Pierron.