From 9c1f9244db112f80c028fb9e9198a7fe6f7afe48 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 4 Jul 2023 14:25:02 +0300 Subject: [PATCH] add mpd and ncmpcpp --- config/mpd/mpd.conf | 4 ++++ configuration.nix | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 config/mpd/mpd.conf diff --git a/config/mpd/mpd.conf b/config/mpd/mpd.conf new file mode 100644 index 00000000..64d1865f --- /dev/null +++ b/config/mpd/mpd.conf @@ -0,0 +1,4 @@ +audio_output { + type "pipewire" + name "My PipeWire Output" +} diff --git a/configuration.nix b/configuration.nix index 83bb790a..723018c2 100644 --- a/configuration.nix +++ b/configuration.nix @@ -166,9 +166,18 @@ nodejs yarn newsboat + ncmpcpp ]; }; + # TODO(sako):: replace this with mopidy for jellyifn support + services.mpd = { + enable = true; + musicDirectory = "/home/sako/music"; + extraConfig = builtins.readFile config/mpd/mpd.conf; + startWhenNeeded = true; + }; + # garbage collection nix.gc = { automatic = true;