snippetbashTip
nixos-option — Inspect a NixOS configuration. More information: <https://nixos.org/manual/nixos/stable/index.html#s
Viewed 0 times
configurationcommandnixos-optioncliinformationmoreinspectnixos
linux
Problem
How to use the
nixos-option command: Inspect a NixOS configuration. More information: <https://nixos.org/manual/nixos/stable/index.html#sec-modularity>.Solution
nixos-option — Inspect a NixOS configuration. More information: <https://nixos.org/manual/nixos/stable/index.html#sec-modularity>.List all subkeys of a given option key:
nixos-option {{option_key}}List current boot kernel modules:
nixos-option boot.kernelModulesList authorized keys for a specific user:
nixos-option users.users.{{username}}.openssh.authorizedKeys.{{keyFiles|keys}}List all remote builders:
nixos-option nix.buildMachinesList 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}}Code Snippets
List all subkeys of a given option key
nixos-option {{option_key}}List current boot kernel modules
nixos-option boot.kernelModulesList authorized keys for a specific user
nixos-option users.users.{{username}}.openssh.authorizedKeys.{{keyFiles|keys}}List all remote builders
nixos-option nix.buildMachinesList all subkeys of a given key on another NixOS configuration
NIXOS_CONFIG={{path/to/configuration.nix}} nixos-option {{option_key}}Context
tldr-pages: linux/nixos-option
Revisions (0)
No revisions yet.