2024-11-16 20:34:21 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
2025-01-12 23:29:50 +00:00
|
|
|
}: let
|
2024-11-17 06:34:40 +00:00
|
|
|
cfg = config.marleyos.programs.cava;
|
2025-01-12 23:29:50 +00:00
|
|
|
in {
|
2025-01-14 05:05:10 +00:00
|
|
|
options.marleyos.programs.cava.enable = lib.mkEnableOption "cava";
|
2024-11-16 20:34:21 +00:00
|
|
|
|
2025-01-14 05:05:10 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-11-17 06:57:36 +00:00
|
|
|
programs.cava = {
|
2024-11-23 05:00:50 +00:00
|
|
|
# FIX: Re-enable once https://github.com/NixOS/nixpkgs/pull/355948 is
|
|
|
|
# ported to nixpkgs/unstable
|
|
|
|
enable = false;
|
2024-11-16 20:34:21 +00:00
|
|
|
|
2024-11-17 06:57:36 +00:00
|
|
|
# TODO: disable this when mpd is not enabled? Can that be detected on non
|
|
|
|
# NixOS systems?
|
|
|
|
settings = {
|
|
|
|
input = {
|
|
|
|
method = "fifo";
|
|
|
|
source = "/tmp/mpd.fifo";
|
|
|
|
};
|
2024-11-16 20:34:21 +00:00
|
|
|
};
|
|
|
|
};
|
2025-03-02 18:41:56 +00:00
|
|
|
|
|
|
|
stylix.targets.cava = {
|
|
|
|
enable = true;
|
|
|
|
rainbow.enable = true;
|
|
|
|
};
|
2024-11-16 20:34:21 +00:00
|
|
|
};
|
|
|
|
}
|