nixpkgs/nixos/modules
Maximilian Bosch e0780c5cff
nixos/nixos-option: fix evaluator to render a full submodule entry
When running e.g. `nixos-option users.users.ma27`, the evaluation breaks
since `ma27` is the attribute name in `attrsOf (submodule {})`, but not
a part of the option tree and therefore breaks with the following
errors:

```
error: At 'ma27' in path 'users.users.ma27': Attribute not found
An error occurred while looking for attribute names. Are you sure that 'users.users.ma27' exists?
```

This happens since the option evaluator expects that either the option
exists or the option is a submodule and the "next" token in the
attribute path points to an option (e.g. `users.users.ma27.createHome`).

This patch checks in the `Attribute not found` condition if the attribute-path
actually exists in the config tree. If that's true, a dummy-attrset is created
which contains `{_type = "__nixos-option-submodule-attr";}`, in that case, the
entire entry of the submodule will be displayed.
2019-12-12 14:27:36 +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: fix evaluator to render a full submodule entry 2019-12-12 14:27:36 +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