List all subkeys of a given key on another NixOS configuration

nixos-option

  • Inspect a NixOS configuration.
    More information: <https://nixos.org/manual/nixos/stable/index.html#sec-modularity>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

NIXOS_CONFIG={{path_to_configuration.nix}} nixos-option {{option_key}}

click the source code to copy