Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
linux/nixos-option Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`