nixpkgs/nixos/modules
Chuck 09ac7cb55f nixos/nixos-option: Show values inside aggregate options uniformly
1. This makes aggregates of submodules (including the very important
"nixos-option users.users.<username>" case) behave the same way as any
other you-need-to-keep-typing-to-get-to-an-option-leaf (eg:
"nixos-option environment").

Before e0780c5:

  $ nixos-option users.users.root
  error: At 'root' in path 'users.users.root': Attribute not found
  An error occurred while looking for attribute names. Are you sure that 'users.users.root' exists?

After e0780c5 but before this change, this query just printed out a raw
thing, which is behavior that belongs in "nix eval", "nix-instantiate
--eval", or "nix repl <<<":

  $ nixos-option users.users.root
  {
    _module = {
      args = { name = "root"; };
      check = true;
    };
    createHome = false;
    cryptHomeLuks = null;
    description = "System administrator";
    ...

After this change:

  $ nixos-option users.users.root
  This attribute set contains:
  createHome
  cryptHomeLuks
  description
  extraGroups
  group
  hashedPassword
  ...

2. For aggregates of other types (not submodules), print out the option
that contains them rather than printing an error message.

Before:

  $ nixos-option environment.shellAliases.l
  error: At 'l' in path 'environment.shellAliases.l': Attribute not found
  An error occurred while looking for attribute names. Are you sure that 'environment.shellAliases.l' exists?

After:

  $ nixos-option environment.shellAliases.l
  Note: showing environment.shellAliases instead of environment.shellAliases.l
  Value:
  {
    l = "ls -alh";
    ll = "ls -l";
    ls = "ls --color=tty";
  }
  ...
2019-12-19 15:00:43 +01:00
..
config Revert "environment.noXlibs: do not pull gobject-introspection" 2019-12-01 02:16:04 +01:00
hardware nixos/nvidia: assert that gdm.nvidiaWayland needs modesetting 2019-11-19 15:34:39 -05:00
i18n/input-method nixos/ibus: install D-Bus services 2019-12-07 00:58:30 +01:00
installer nixos/nixos-option: Show values inside aggregate options uniformly 2019-12-19 15:00:43 +01:00
misc nixos/version: PRETTY_NAME in /etc/os-release uses the release now instead of full version 2019-12-02 20:04:44 +01:00
profiles nixos/plasma5: drop enableQt4Support option 2019-11-22 09:01:05 +01:00
programs dconf: move to top-level 2019-12-01 01:01:40 +01:00
security nixos/acme: Fix allowKeysForGroup not applying immediately (#72056) 2019-11-13 23:51:34 +01:00
services nixos/nextcloud: Do not run sudo if not needed 2019-12-07 21:10:34 +01:00
system Merge pull request #72888 from fooker/pr-3 2019-12-06 18:04:34 +01:00
tasks nixos/zfs: Adding ZED configuration options 2019-12-04 20:29:19 +01:00
testing nixos/testing: remove leftover of virtualisation.qemu.program 2019-08-29 10:12:13 +02:00
virtualisation Merge pull request #72996 from elohmeier/containers-fix 2019-11-25 09:35:09 +00:00
module-list.nix Merge pull request #66089 from servalcatty/v2ray 2019-12-03 04:42:50 -05:00
rename.nix Remove networking.hostConf option 2019-11-29 12:08:34 +01:00