From 5050e7bcce5302c98347548aa6b50701afdadcfe Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 2 Jan 2026 11:35:10 +0100 Subject: [PATCH] feat: comply with new mpd settings (nixpkgs) --- modules/services/mpd.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/modules/services/mpd.nix b/modules/services/mpd.nix index ab504ce..e43b7fa 100644 --- a/modules/services/mpd.nix +++ b/modules/services/mpd.nix @@ -14,17 +14,19 @@ services.mpd = { enable = true; - musicDirectory = "/home/${username}/Music"; - playlistDirectory = "/home/${username}/Music/.playlists"; - extraConfig = '' - restore_paused "yes" - auto_update "yes" + settings = { + playlist_directory = "/home/${username}/Music/.playlists"; + music_directory = "/home/${username}/Music"; + restore_paused = "yes"; + auto_update = "yes"; - audio_output { - type "pipewire" - name "pipewire" - } - ''; + audio_output = [ + { + type = "pipewire"; + name = "pipewire"; + } + ]; + }; user = "${username}"; # PipeWire requires this as it runs as the normal user and mpd normally runs as a system user. # Optional: