Add MPD and shairport server to redoubt
This commit is contained in:
parent
4da7b00352
commit
3a1f05c80f
1 changed files with 59 additions and 0 deletions
|
@ -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";
|
||||
}
|
||||
];
|
||||
|
||||
##############################################################################
|
||||
##############################################################################
|
||||
##############################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue