Commit 960f44495212

Vincent Demeester <vincent@sbr.pm>
2018-11-29 10:14:40
pulseaudio: don't publish by default…
… somehow, it's messing up wifi on the thinkpad x200 😓 Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 9be11ae
Changed files (1)
modules
modules/profiles/pulseaudio.nix
@@ -12,6 +12,11 @@ in
         description = "Enable pulseaudio profile";
         type = types.bool;
       };
+      tcp = mkOption {
+        default = false;
+        description = "Enable pulseaudio tcp";
+        type = types.bool;
+      };
     };
   };
   config = mkIf cfg.enable {
@@ -20,11 +25,11 @@ in
         enable = true;
         support32Bit = true;
         zeroconf = {
-          discovery.enable = true;
-          publish.enable = true;
+          discovery.enable = cfg.tcp;
+          publish.enable = cfg.tcp;
         };
         tcp = {
-          enable = true;
+          enable = cfg.tcp;
           anonymousClients = {
             allowAll = true;
             allowedIpRanges = [ "127.0.0.1" "192.168.12.0/24" "10.0.0.0/24" ];