Skip to content

Commit

Permalink
fix(home-manager/lsd): check that lsd is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mariovagomarzal committed Jan 5, 2025
1 parent b807756 commit 70280c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/home-manager/lsd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

let
inherit (config.catppuccin) sources;

cfg = config.catppuccin.lsd;
enable = cfg.enable && config.programs.lsd.enable;
in

{
Expand All @@ -18,7 +20,7 @@ in
to = "lsd";
};

config = lib.mkIf cfg.enable {
config = lib.mkIf enable {
xdg.configFile = {
"lsd/config.yaml".source = "${sources.lsd}/catppuccin-${cfg.flavor}/colors.yaml";
};
Expand Down

0 comments on commit 70280c4

Please sign in to comment.