1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(pulseaudio): use nixos module for network sink, publish via zeroconf

This commit is contained in:
2021-03-24 20:25:48 +01:00
parent 78a50e9ae3
commit 777f24e37e
2 changed files with 6 additions and 6 deletions

View File

@@ -80,6 +80,7 @@ in {
enable = true;
package = pkgs.pulseaudioFull; # for bluetooth sound output
# copy server:/run/pulse/.config/pulse/cookie to client:~/.config/pulse/cookie to authenticate a client machine
zeroconf.discovery.enable = true;
extraConfig = ''
load-module ${toString [
"module-tunnel-sink-new"

View File

@@ -19,12 +19,11 @@
hardware.pulseaudio = {
enable = true;
systemWide = true;
extraConfig = ''
load-module ${toString [
"module-native-protocol-tcp"
"auth-ip-acl=127.0.0.1;10.243.2.0/24;192.168.0.0/16"
]}
'';
tcp = {
enable = true;
anonymousClients.allowedIpRanges = [ "127.0.0.1" "10.243.2.0/24" "192.168.0.0/16" ];
};
zeroconf.publish.enable = true;
};
networking.firewall.allowedTCPPorts = [ 4713 ];
}