feat(home): ncmpcpp

This commit is contained in:
punkfairie 2024-11-16 18:30:58 -08:00
parent e8083473e4
commit ab9fef99f7
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 20 additions and 23 deletions

View file

@ -34,6 +34,7 @@ in
lazygit = enabled; lazygit = enabled;
less = enabled; less = enabled;
man = enabled; man = enabled;
ncmpcpp = enabled;
neo = enabled; neo = enabled;
systemctl = enabled; systemctl = enabled;
}; };

View file

@ -0,0 +1,19 @@
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.ncmpcpp;
in
{
options = mkEnableModule "programs.ncmpcpp";
config = mkIf cfg.enable {
programs.ncmpcpp.enable = true;
};
}

View file

@ -1,23 +0,0 @@
{ ... }:
{
nixpkgs.overlays = [
(final: prev: {
ncmpcpp = prev.ncmpcpp.override {
visualizerSupport = true;
};
})
];
programs.ncmpcpp = {
enable = true;
settings = {
visualizer_data_source = "/tmp/mpd.fifo";
visualizer_output_name = "my_fifo";
visualizer_in_stereo = "yes";
visualizer_type = "spectrum";
visualizer_look = "+|";
visualizer_spectrum_smooth_look = "yes";
};
};
}