feat(home): ncmpcpp
This commit is contained in:
parent
e8083473e4
commit
ab9fef99f7
3 changed files with 20 additions and 23 deletions
|
@ -34,6 +34,7 @@ in
|
|||
lazygit = enabled;
|
||||
less = enabled;
|
||||
man = enabled;
|
||||
ncmpcpp = enabled;
|
||||
neo = enabled;
|
||||
systemctl = enabled;
|
||||
};
|
||||
|
|
19
modules/home/programs/ncmpcpp/default.nix
Normal file
19
modules/home/programs/ncmpcpp/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue