From ab9fef99f771c7eb7e1863df151fcfefbd1cb85c Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 16 Nov 2024 18:30:58 -0800 Subject: [PATCH] feat(home): ncmpcpp --- homes/x86_64-linux/marley@nyx/default.nix | 1 + modules/home/programs/ncmpcpp/default.nix | 19 +++++++++++++++++++ old/home/programs/ncmpcpp.nix | 23 ----------------------- 3 files changed, 20 insertions(+), 23 deletions(-) create mode 100644 modules/home/programs/ncmpcpp/default.nix delete mode 100644 old/home/programs/ncmpcpp.nix diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index b74b2f7..69ffe92 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -34,6 +34,7 @@ in lazygit = enabled; less = enabled; man = enabled; + ncmpcpp = enabled; neo = enabled; systemctl = enabled; }; diff --git a/modules/home/programs/ncmpcpp/default.nix b/modules/home/programs/ncmpcpp/default.nix new file mode 100644 index 0000000..9d22fd3 --- /dev/null +++ b/modules/home/programs/ncmpcpp/default.nix @@ -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; + }; +} diff --git a/old/home/programs/ncmpcpp.nix b/old/home/programs/ncmpcpp.nix deleted file mode 100644 index d8a4a2b..0000000 --- a/old/home/programs/ncmpcpp.nix +++ /dev/null @@ -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"; - }; - }; -}