Commit 11538a6487d4

Vincent Demeester <vincent@sbr.pm>
2018-03-13 19:27:47
Fix mopidy :)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent b9db4d3
Changed files (3)
machine/wakasu.nix
@@ -35,6 +35,10 @@
 	];
 
 	hardware.bluetooth.enable = true;
+	hardware.bluetooth.extraConfig = "
+[general]
+Enable=Source,Sink,Media,Socket
+";
 	hardware.trackpoint.enable = false;
 
 	time.timeZone = "Europe/Paris";
profiles/audio.nix
@@ -9,7 +9,10 @@
 				discovery.enable = true;
 				publish.enable = true;
 			};
-			tcp.enable = true;
+			tcp = {
+				enable = true;
+				anonymousClients.allowedIpRanges = [ "127.0.0.1" ];
+			};
 			package = pkgs.pulseaudioFull;
 		};
 	};
profiles/mopidy.nix
@@ -9,15 +9,27 @@ with import ../accounts.nix;
       mopidy-spotify
       mopidy-moped
       mopidy-mopify
+      mopidy-youtube
     ];
     configuration = ''
-      [spotify]
-      username = ${spotify.user}
-      password = ${spotify.password}
-      client_id = ${spotify.client_id}
-      client_secret = ${spotify.client_secret}
-      [audio]
-      output = pulsesink server=127.0.0.1
+    [core]
+    restore_state = true
+    [local]
+    enabled = true
+    [spotify]
+    username = ${spotify.user}
+    password = ${spotify.password}
+    client_id = ${spotify.client_id}
+    client_secret = ${spotify.client_secret}
+    bitrate = 320
+    timeout = 30
+    [youtube]
+    enabled = true
+    [audio]
+    mixer = software
+    mixer_volume =
+    output = pulsesink server=127.0.0.1
+    buffer_time =
     '';
   };
 }