marleyos/modules/home/programs/cava/default.nix
punkfairie 15372b7726
feat: ${namespace} -> marleyos
There was little point to doing this anyway as project-wide find &
replace is trivial.
2024-11-16 22:36:34 -08:00

31 lines
562 B
Nix

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