about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rw-r--r--machines/labnet/labtops.nix35
1 files changed, 29 insertions, 6 deletions
diff --git a/machines/labnet/labtops.nix b/machines/labnet/labtops.nix
index 6ae22caa..0571476e 100644
--- a/machines/labnet/labtops.nix
+++ b/machines/labnet/labtops.nix
@@ -15,6 +15,7 @@
   };
 
   hannswurscht = { pkgs, ... }:
+    let musicDir = "/data/music"; in
   {
     vuizvui.user.openlab.base.enable = true;
 
@@ -24,18 +25,40 @@
     services.mingetty.autologinUser = "openlab";
 
     hardware.pulseaudio = {
-      #package = pkgs.pulseaudioLight.overrideDerivation (old: {
-      #  patches = old.patches or [] ++ [ ./buffer.patch ];
-      #});
       enable = true;
-      tcp.enable = true;
-      tcp.anonymousClients.allowedIpRanges = [ "172.16.0.0/16" ];
+      systemWide = true;
+      package = pkgs.pulseaudioFull;
+      zeroconf.discovery.enable = false;
       zeroconf.publish.enable = true;
+      tcp.enable = true;
+      tcp.anonymousClients.allowedIpRanges = [ "172.16.0.0/16" "127.0.0.1" ];
     };
-    #services.shairport-sync.enable = true;
 
     vuizvui.user.openlab.stackenblocken.enable = true;
 
     services.logind.extraConfig = "HandleLidSwitch=ignore";
+
+    services.mpd = {
+      enable = true;
+      musicDirectory = musicDir;
+      network.listenAddress = "any";
+      extraConfig = ''
+        auto_update yes
+        audio_output {
+          type            "pulse"
+          name            "MPD Pulse Output"
+          server          "127.0.0.1"
+        }
+      '';
+    };
+
+    fileSystems = {
+      "${musicDir}" = {
+        device = "ftp.openlab.lan:/data/upload/music";
+        fsType = "nfs";
+        label = "lab-ftp";
+        options = [ "nolock" "x-systemd.automount"];
+      };
+    };
   };
 }