Skip to content

Commit

Permalink
fixup! fix: only eval enable option if visible (#214) (#218)
Browse files Browse the repository at this point in the history
Turns out not all options have the visible attribute.
  • Loading branch information
zimbatm authored Aug 11, 2024
1 parent 14c092e commit c9f9703
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 c9f9703

Please sign in to comment.