chore: move mpd back because it doesn't work otherwise

This commit is contained in:
Ahwx 2025-07-17 11:49:01 +02:00
parent 36b8414891
commit 1b4d7303b5

View file

@ -5,7 +5,7 @@
... ...
}: }:
{ {
home.packages = with pkgs; [ environment.systemPackages = with pkgs; [
mpc mpc
mpdris2 mpdris2
ncmpcpp ncmpcpp
@ -18,9 +18,10 @@
extraConfig = '' extraConfig = ''
restore_paused "yes" restore_paused "yes"
auto_update "yes" auto_update "yes"
audio_output { audio_output {
type "pipewire" type "pipewire"
name "pipewire" name "pipewire"
} }
''; '';
user = "${username}"; # PipeWire requires this as it runs as the normal user and mpd normally runs as a system user. user = "${username}"; # PipeWire requires this as it runs as the normal user and mpd normally runs as a system user.
@ -30,6 +31,6 @@
}; };
systemd.services.mpd.environment = { systemd.services.mpd.environment = {
# see: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609 # see: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.${username}.uid}"; # User-id must match above user. MPD will look inside this directory for the PipeWire socket. XDG_RUNTIME_DIR = "/run/user/1000"; # User-id must match above user. MPD will look inside this directory for the PipeWire socket.
}; };
} }