diff --git a/systems/redoubt/configuration.nix b/systems/redoubt/configuration.nix index a799532..be5078e 100644 --- a/systems/redoubt/configuration.nix +++ b/systems/redoubt/configuration.nix @@ -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"; + } + ]; + ############################################################################## ############################################################################## ##############################################################################