1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:22:07 +02:00
tldr/pages/linux/nixos-option.md
Managor ae436c1b00
linux/*: add option placeholders (#16192)
* batch1

* batch2

* batch3

* batch4

* Update matchpathcon.md

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 21:21:53 +00:00

713 B

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|--recursive]}} users.users.{{user}}