mirror of
https://github.com/kmein/niveum
synced 2026-03-22 04:41:07 +01:00
feat(pulseaudio): use nixos module for network sink, publish via zeroconf
This commit is contained in:
@@ -80,6 +80,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.pulseaudioFull; # for bluetooth sound output
|
package = pkgs.pulseaudioFull; # for bluetooth sound output
|
||||||
# copy server:/run/pulse/.config/pulse/cookie to client:~/.config/pulse/cookie to authenticate a client machine
|
# copy server:/run/pulse/.config/pulse/cookie to client:~/.config/pulse/cookie to authenticate a client machine
|
||||||
|
zeroconf.discovery.enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
load-module ${toString [
|
load-module ${toString [
|
||||||
"module-tunnel-sink-new"
|
"module-tunnel-sink-new"
|
||||||
|
|||||||
@@ -19,12 +19,11 @@
|
|||||||
hardware.pulseaudio = {
|
hardware.pulseaudio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemWide = true;
|
systemWide = true;
|
||||||
extraConfig = ''
|
tcp = {
|
||||||
load-module ${toString [
|
enable = true;
|
||||||
"module-native-protocol-tcp"
|
anonymousClients.allowedIpRanges = [ "127.0.0.1" "10.243.2.0/24" "192.168.0.0/16" ];
|
||||||
"auth-ip-acl=127.0.0.1;10.243.2.0/24;192.168.0.0/16"
|
};
|
||||||
]}
|
zeroconf.publish.enable = true;
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ 4713 ];
|
networking.firewall.allowedTCPPorts = [ 4713 ];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user