rose-pine-nix/modules/home-manager/cava.nix

21 lines
439 B
Nix
Raw Normal View History

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