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;