diff options
author | Openlab Hannswurscht <discard@openlab-augsburg.de> | 2017-02-16 11:27:49 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2017-02-16 12:29:06 +0100 |
commit | cd4bc6fde00e3da0382a3eb151dbbd0087449377 (patch) | |
tree | b7415f5348c45c1b6c145113f8cd85c517f3c1a4 /machines/labnet/labtops.nix | |
parent | 94c6950028229c216a8ecfac8069f44615b56f24 (diff) |
machines/hansswurscht: global pulse & mpd
Pulse works just fine as system process by now, even with avahi zeroconf. Add mpd & an nfs music mount from the fileserver.
Diffstat (limited to 'machines/labnet/labtops.nix')
-rw-r--r-- | machines/labnet/labtops.nix | 35 |
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"]; + }; + }; }; } |