Skip to content

Commit

Permalink
fix(fuzzel): correctly gatekeep module
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Nov 10, 2024
1 parent 32359bf commit fbf5f4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/home-manager/fuzzel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
let
inherit (config.catppuccin) sources;
cfg = config.programs.fuzzel.catppuccin;
enable = cfg.enable && config.programs.fuzzel.enable;
in
{
options.programs.fuzzel.catppuccin = lib.ctp.mkCatppuccinOpt { name = "fuzzel"; } // {
accent = lib.ctp.mkAccentOpt "fuzzel";
};

config = lib.mkIf cfg.enable {
config = lib.mkIf enable {
programs.fuzzel.settings.main.include =
sources.fuzzel + "/themes/catppuccin-${cfg.flavor}/${cfg.accent}.ini";
};
Expand Down

0 comments on commit fbf5f4d

Please sign in to comment.