13 lines
366 B
Nix
13 lines
366 B
Nix
{ config, lib, ... }:
|
|
let
|
|
inherit (config.catppuccin) sources;
|
|
cfg = config.programs.cava.catppuccin;
|
|
enable = cfg.enable && config.programs.cava.enable;
|
|
in
|
|
{
|
|
options.programs.cava.catppuccin = lib.ctp.mkCatppuccinOpt "cava";
|
|
|
|
config.programs.cava = lib.mkIf enable {
|
|
settings = lib.ctp.fromINIRaw (sources.cava + "/themes/${cfg.flavor}.cava");
|
|
};
|
|
}
|