Skip to content

Commit

Permalink
Enable MPD service with PipeWire audio output and configure network s…
Browse files Browse the repository at this point in the history
…ettings
  • Loading branch information
ryanwclark committed Dec 30, 2024
1 parent 9c6b8b0 commit cedbccf
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions hosts/common/optional/audio.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,20 @@

{
services.mpd = {
enable = false;
musicDirectory = ''$HOME/Music'';
enable = true;
user = "userRunningPipeWire";
startWhenNeeded = false;
extraConfig = ''
audio_output {
type "pipewire"
name "My PipeWire Output"
}
'';
# Optional:
network = {
listenAddress = "any"; # if you want to allow non-localhost connections
port = 6600;
};
};

hardware.pulseaudio.enable = false;
Expand All @@ -17,7 +29,7 @@
# Enabling system-wide PipeWire is not recommended and disabled by default according to https://github.com/PipeWire/pipewire/blob/master/NEWS
socketActivation = true;
# Opens UDP/6001-6002, required by RAOP/Airplay for timing and control data.
raopOpenFirewall = false;
raopOpenFirewall = true;
alsa = {
enable = true;
support32Bit = true;
Expand Down

0 comments on commit cedbccf

Please sign in to comment.