mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(pulseaudio): sink zaatar
This commit is contained in:
@@ -79,6 +79,16 @@ in {
|
|||||||
hardware.pulseaudio = {
|
hardware.pulseaudio = {
|
||||||
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
|
||||||
|
extraConfig = ''
|
||||||
|
load-module ${toString [
|
||||||
|
"module-tunnel-sink-new"
|
||||||
|
"server=zaatar.r"
|
||||||
|
"sink_name=zaatar"
|
||||||
|
"channels=2"
|
||||||
|
"rate=44100"
|
||||||
|
]}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.me.extraGroups = [ "audio" ];
|
users.users.me.extraGroups = [ "audio" ];
|
||||||
|
|||||||
@@ -15,6 +15,18 @@
|
|||||||
<niveum/configs/mail/fetcher.nix>
|
<niveum/configs/mail/fetcher.nix>
|
||||||
{
|
{
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|
||||||
|
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"
|
||||||
|
]}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [ 4713 ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
|
|||||||
Reference in New Issue
Block a user