Skip to content

Commit c11bfcf

Browse files
fix(home-manager/eza): enable only if enabled in home-manager (#775)
1 parent 931c646 commit c11bfcf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/home-manager/eza.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
let
55
inherit (config.catppuccin) sources;
6+
67
cfg = config.catppuccin.eza;
8+
enable = cfg.enable && config.programs.eza.enable;
79
in
810

911
{
@@ -12,7 +14,7 @@ in
1214
accentSupport = true;
1315
};
1416

15-
config = lib.mkIf cfg.enable {
17+
config = lib.mkIf enable {
1618
xdg.configFile = {
1719
"eza/theme.yml".source = "${sources.eza}/${cfg.flavor}/catppuccin-${cfg.flavor}-${cfg.accent}.yml";
1820
};

0 commit comments

Comments
 (0)