commands.sh

nixos-option

linux

Inspect a NixOS configuration.

More info →

Options (1)

-r, --recursiveboolean

Show recursively all values of a user

Example: nixos-option {{[-r|--recursive]}} users.users.{{user}}

Examples (6)

List all subkeys of a given option key

nixos-option option_key

List current boot kernel modules

nixos-option boot.kernelModules

List authorized keys for a specific user

nixos-option users.users.username.openssh.authorizedKeys.keyFiles|keys

List all remote builders

nixos-option nix.buildMachines

List all subkeys of a given key on another NixOS configuration

NIXOS_CONFIG=path/to/configuration.nix nixos-option option_key

Show recursively all values of a user

nixos-option [-r|--recursive] users.users.user
made by @shridhargupta | data from tldr-pages