audio: add enable-pipebert-rtp script
This commit is contained in:
parent
3bb36735c4
commit
4db93ab78a
|
@ -21,6 +21,15 @@ in
|
||||||
environment.systemPackages = lib.mkIf config.services.xserver.enable (with pkgs; [
|
environment.systemPackages = lib.mkIf config.services.xserver.enable (with pkgs; [
|
||||||
paprefs
|
paprefs
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
(pkgs.writeScriptBin "enable-pipebert-rtp" /* bash */ ''
|
||||||
|
set -eou pipefail
|
||||||
|
export PATH=$PATH:${lib.makeBinPath [ config.hardware.pulseaudio.package dig ]}
|
||||||
|
|
||||||
|
ip=$(dig +short pipebert.hq.c3d2.de)
|
||||||
|
|
||||||
|
pactl load-module module-null-sink sink_name=rtp sink_properties="device.description='Pipebert RTP'"
|
||||||
|
pactl load-module module-rtp-send source=rtp.monitor destination_ip="$ip"
|
||||||
|
'')
|
||||||
]);
|
]);
|
||||||
|
|
||||||
hardware.pulseaudio = {
|
hardware.pulseaudio = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user