Add MPD and shairport server to redoubt

This commit is contained in:
Lauren Lagarde 2025-08-17 16:12:23 -05:00
parent 4da7b00352
commit 3a1f05c80f

View file

@ -61,6 +61,65 @@
};
};
services.avahi = {
enable = true;
publish.enable = true;
publish.addresses = true;
publish.workstation = true;
openFirewall = true;
};
hardware.alsa.enable = true;
services.shairport-sync = {
enable = true;
openFirewall = true;
settings = {
general = {
name = "Living Room Pi";
output_backend = "alsa";
};
sessioncontrol.allow_session_interruption = "yes";
};
};
services.mpd = {
enable = true;
musicDirectory = "/Music";
extraConfig = ''
audio_output {
type "alsa"
name "Default"
mixer_type "hardware"
mixer_device "default"
mixer_control "PCM"
device "hw:0,0"
}
'';
network.listenAddress = "any";
};
systemd.mounts = [
{
type = "cifs";
options = "guest,ro,vers=3,uid=65534,gid=100,dir_mode=0775,file_mode=0664";
what = "//blockhouse.mlaga97.space/Music";
where = "/Music";
}
];
systemd.automounts = [
{
wantedBy = [ "multi-user.target" ];
automountConfig = {
TimeoutIdleSec = "60";
DeviceTimeout = "5";
MountTimeout = "5";
};
where = "/Music";
}
];
##############################################################################
##############################################################################
##############################################################################