From 4cda2b182cd314bf0234066bc54411451705551c Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Mon, 1 Nov 2021 23:47:06 +0100 Subject: [PATCH] nixos-option: add page (#7166) --- pages/linux/nixos-option.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/linux/nixos-option.md diff --git a/pages/linux/nixos-option.md b/pages/linux/nixos-option.md new file mode 100644 index 000000000..161979226 --- /dev/null +++ b/pages/linux/nixos-option.md @@ -0,0 +1,28 @@ +# nixos-option + +> Inspect a NixOS configuration. +> More information: . + +- 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}}`