Skip to content

Commit

Permalink
lib: make use of visible variable in doRename
Browse files Browse the repository at this point in the history
The `visible` variable was not hooked up previously. It is used to
determine whether the renamed option should be shown in the
documentation.
  • Loading branch information
rycee committed Feb 10, 2018
1 parent 08d1400 commit a7ed44c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit a7ed44c

Please sign in to comment.