32 lines
596 B
Nix
32 lines
596 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIf;
|
|
inherit (lib.marleyos) mkEnableModule enabled;
|
|
|
|
cfg = config.marleyos.programs.cava;
|
|
inherit (config.marleyos.theme) colors;
|
|
in
|
|
{
|
|
options = mkEnableModule "programs.cava";
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.cava = {
|
|
enable = true;
|
|
|
|
rose-pine = mkIf colors.isRosePine enabled;
|
|
|
|
# TODO: disable this when mpd is not enabled? Can that be detected on non
|
|
# NixOS systems?
|
|
settings = {
|
|
input = {
|
|
method = "fifo";
|
|
source = "/tmp/mpd.fifo";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|