diff options
author | Robert Helgesson <robert@rycee.net> | 2018-02-10 10:28:30 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2018-02-10 10:29:33 +0100 |
commit | a7ed44ccadfcf1bd54d0197fbc87b6c1b0bcef7b (patch) | |
tree | d927e195cd53bff5ca47fa31e62d1109ed78af49 /lib/modules.nix | |
parent | 08d140081660885320d630ff9d90d888f816f558 (diff) |
lib: make use of visible variable in doRename
The `visible` variable was not hooked up previously. It is used to
determine whether the renamed option should be shown in the
documentation.
Diffstat (limited to 'lib/modules.nix')
-rw-r--r-- | lib/modules.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/modules.nix b/lib/modules.nix index 654c4c588de6..019f11d11bc0 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -664,6 +664,7 @@ rec { in { config, options, ... }: { options = setAttrByPath from (mkOption { + inherit visible; description = "Alias of <option>${showOption to}</option>."; apply = x: use (toOf config); }); |