“nixos-option” is a command-line tool for inspecting and viewing information about NixOS configuration options. NixOS is a Linux distribution that uses the Nix package manager, and “nixos-option” allows users to view information about various configuration options and settings in the NixOS system.
The tool provides a simple and intuitive interface for accessing information about NixOS configuration options, including descriptions, default values, and allowed values. This information can be useful for understanding how the system is configured, and for making changes to the configuration.
“nixos-option” allows users to inspect the configuration of a NixOS system, including options for system services, networking, security, and other settings. The tool is a valuable resource for NixOS users, and it provides a convenient way to access information about the configuration of the system.
nixos-option Command Examples
1. List all subkeys of a given option key:
# nixos-option {{option_key}}
2. List current boot kernel modules:
# nixos-option boot.kernelModules
3. List authorized keys for a specific user:
# nixos-option users.users.{{username}}.openssh.authorizedKeys.{{keyFiles|keys}}
4. List all remote builders:
# nixos-option nix.buildMachines
5. List all subkeys of a given key on another NixOS configuration:
# NIXOS_CONFIG={{path_to_configuration.nix}} nixos-option{{option_key}}
6. Show recursively all values of a user:
# nixos-option -r users.users.{{user}}