From dcf6bb18c74e5c2211e59c38e916f32532c73084 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 4 Jul 2023 23:44:35 +0300 Subject: [PATCH] actually fix mpd --- config/mpd/mpd.conf | 1 - configuration.nix | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/mpd/mpd.conf b/config/mpd/mpd.conf index 1da089c3..64d1865f 100644 --- a/config/mpd/mpd.conf +++ b/config/mpd/mpd.conf @@ -1,5 +1,4 @@ audio_output { type "pipewire" name "My PipeWire Output" - server "127.0.0.1" } diff --git a/configuration.nix b/configuration.nix index 56d471c2..f1e4aa22 100644 --- a/configuration.nix +++ b/configuration.nix @@ -171,6 +171,7 @@ # TODO(sako):: replace this with mopidy for jellyifn support services.mpd = { + # pipewire fix user = "sako"; enable = true; musicDirectory = "/home/sako/music"; @@ -178,6 +179,11 @@ startWhenNeeded = true; }; + # mpd fix + systemd.services.mpd.environment = { + XDG_RUNTIME_DIR = "/run/user/1000"; + }; + # garbage collection nix.gc = { automatic = true;