2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2024-04-16 09:44:26 -07:00
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2024-04-16 09:44:26 -07:00
|
|
|
cfg = config.programs.cava.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.cava.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-05-21 14:53:46 -07:00
|
|
|
options.programs.cava.catppuccin = lib.ctp.mkCatppuccinOpt "cava";
|
2024-04-16 09:44:26 -07:00
|
|
|
|
|
|
|
config.programs.cava = lib.mkIf enable {
|
2024-05-21 17:23:55 -07:00
|
|
|
settings = lib.ctp.fromINIRaw (sources.cava + "/themes/${cfg.flavor}.cava");
|
2024-04-16 09:44:26 -07:00
|
|
|
};
|
|
|
|
}
|