feat: cava
This commit is contained in:
parent
a0fe695cbc
commit
7855b51297
3 changed files with 9 additions and 8 deletions
|
@ -45,6 +45,7 @@ in {
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
amfora = enabled;
|
amfora = enabled;
|
||||||
|
cava = enabled;
|
||||||
cheat = enabled;
|
cheat = enabled;
|
||||||
fzf = enabled;
|
fzf = enabled;
|
||||||
gh = enabled;
|
gh = enabled;
|
||||||
|
|
|
@ -1,22 +1,21 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
osConfig,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.marleyos.programs.cava;
|
cfg = config.marleyos.programs.cava;
|
||||||
|
has-mpd = osConfig.services.mpd.enable || config.services.mpd.enable;
|
||||||
in {
|
in {
|
||||||
options.marleyos.programs.cava.enable = lib.mkEnableOption "cava";
|
options.marleyos.programs.cava.enable = lib.mkEnableOption "cava";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) {
|
||||||
programs.cava = {
|
programs.cava = {
|
||||||
# FIX: Re-enable once https://github.com/NixOS/nixpkgs/pull/355948 is
|
enable = true;
|
||||||
# ported to nixpkgs/unstable
|
|
||||||
enable = false;
|
|
||||||
|
|
||||||
# TODO: disable this when mpd is not enabled? Can that be detected on non
|
|
||||||
# NixOS systems?
|
|
||||||
settings = {
|
settings = {
|
||||||
input = {
|
input = lib.mkIf has-mpd {
|
||||||
method = "fifo";
|
method = "fifo";
|
||||||
source = "/tmp/mpd.fifo";
|
source = "/tmp/mpd.fifo";
|
||||||
};
|
};
|
|
@ -4,6 +4,7 @@
|
||||||
./amfora
|
./amfora
|
||||||
./bat.nix
|
./bat.nix
|
||||||
./btop.nix
|
./btop.nix
|
||||||
|
./cava.nix
|
||||||
./cheat.nix
|
./cheat.nix
|
||||||
./curl.nix
|
./curl.nix
|
||||||
./eza.nix
|
./eza.nix
|
||||||
|
|
Loading…
Reference in a new issue