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.
This commit is contained in:
Robert Helgesson
2018-02-10 10:28:30 +01:00
parent 08d1400816
commit a7ed44ccad

View File

@@ -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);
});