mpd: Use pipewire output

This commit is contained in:
Simon Bruder 2021-11-20 16:44:54 +01:00
parent 1df9a87520
commit f2d9a44800
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -5,6 +5,7 @@
lib.mkIf nixosConfig.sbruder.gui.enable { lib.mkIf nixosConfig.sbruder.gui.enable {
services.mpd = { services.mpd = {
enable = true; enable = true;
package = pkgs.unstable.mpd;
musicDirectory = "~/Music"; musicDirectory = "~/Music";
network.listenAddress = "${config.services.mpd.dataDir}/socket"; network.listenAddress = "${config.services.mpd.dataDir}/socket";
extraConfig = '' extraConfig = ''
@ -13,8 +14,8 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
restore_paused "yes" restore_paused "yes"
audio_output { audio_output {
type "pulse" type "pipewire"
name "pulse" name "pipewire"
} }
audio_output { audio_output {