2024-04-16 09:44:26 -07:00
|
|
|
{
|
2024-10-19 17:45:25 -07:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-11-04 20:55:40 -08:00
|
|
|
}:
|
|
|
|
let
|
2024-10-19 17:45:25 -07:00
|
|
|
inherit (config.rose-pine) sources;
|
2024-11-04 20:55:40 -08:00
|
|
|
|
2024-10-19 17:45:25 -07:00
|
|
|
cfg = config.programs.cava.rose-pine;
|
|
|
|
enable = cfg.enable && config.programs.cava.enable;
|
2024-11-04 20:55:40 -08:00
|
|
|
|
|
|
|
flavor = if (cfg.flavor == "main") then "rosepine" else cfg.flavor;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.cava.rose-pine = lib.rp.mkRosePineOpt { name = "cava"; };
|
2024-04-16 09:44:26 -07:00
|
|
|
|
|
|
|
config.programs.cava = lib.mkIf enable {
|
2024-10-20 17:55:15 -07:00
|
|
|
settings.color = lib.rp.fromINIRaw (sources.cava + "/${flavor}");
|
2024-04-16 09:44:26 -07:00
|
|
|
};
|
|
|
|
}
|