Skip to content

Commit

Permalink
fixup! fix: only eval enable option if visible (#214)
Browse files Browse the repository at this point in the history
Turns out not all options have the visible attribute.
  • Loading branch information
zimbatm committed Aug 10, 2024
1 parent 14c092e commit 76d539c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module-options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ in
pkgs.lib.concatMapAttrs
(
k: v:
if options.programs.${k}.enable.visible && v.enable then
if (options.programs.${k}.enable.visible or true) && v.enable then
{ "${k}" = v.package; } else { }
)
config.programs;
Expand Down

0 comments on commit 76d539c

Please sign in to comment.