mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
nixos-option: add page (#7166)
This commit is contained in:
parent
e4a8b992d1
commit
4cda2b182c
1 changed files with 28 additions and 0 deletions
28
pages/linux/nixos-option.md
Normal file
28
pages/linux/nixos-option.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# 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.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 users.users.{{user}}`
|
Loading…
Add table
Reference in a new issue