nixos-option

Inspect a NixOS configuration.

TLDR

List all subkeys of a given option key

$ nixos-option [option_key]
copy

List current boot kernel modules

$ nixos-option boot.kernelModules
copy

List authorized keys for a specific user

$ nixos-option users.users.[username].openssh.authorizedKeys.[keyFiles|keys]
copy

List all remote builders

$ nixos-option nix.buildMachines
copy

List all subkeys of a given key on another NixOS configuration

$ NIXOS_CONFIG=[path_to_configuration.nix] nixos-option [option_key]
copy

Show recursively all values of a user

$ nixos-option -r users.users.[user]
copy

Copied to clipboard
linuxmousepad