diff --git a/module-options.nix b/module-options.nix index 9d2a208..129329d 100644 --- a/module-options.nix +++ b/module-options.nix @@ -1,4 +1,5 @@ { config +, options , lib , pkgs , ... @@ -197,11 +198,14 @@ in package used to do the formatting. ''; defaultText = lib.literalMD "Programs used in configuration"; - default = pkgs.lib.concatMapAttrs - ( - k: v: if v.enable then { "${k}" = v.package; } else { } - ) - config.programs; + default = + pkgs.lib.concatMapAttrs + ( + k: v: + if options.programs.${k}.enable.visible && v.enable then + { "${k}" = v.package; } else { } + ) + config.programs; }; check = mkOption { description = ''