feat(home): Cava

This commit is contained in:
punkfairie 2024-11-16 12:34:21 -08:00
parent b4fea44052
commit 9aecfe94a7
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 32 additions and 17 deletions

View file

@ -17,6 +17,7 @@ in
amfora = enabled;
bat = enabled;
btop = enabled;
cava = enabled;
fish = enabled;
journalctl = enabled;
neo = enabled;

View file

@ -0,0 +1,31 @@
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf enabled;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.cava;
inherit (config.${namespace}) theme;
in
{
options = mkEnableModule "programs.cava";
config = mkIf cfg.enable {
enable = true;
"${theme.colors.base}" = 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";
};
};
};
}

View file

@ -1,17 +0,0 @@
{ ... }:
{
programs.cava = {
enable = true;
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";
};
};
};
}