audio: add disable script
This commit is contained in:
parent
6e6fb83967
commit
3e30f2702f
|
@ -31,6 +31,13 @@ in
|
||||||
pactl load-module module-null-sink sink_name=rtp sink_properties="device.description='Pipebert-RTP'"
|
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" port=9875
|
pactl load-module module-rtp-send source=rtp.monitor destination_ip="$ip" port=9875
|
||||||
'')
|
'')
|
||||||
|
(pkgs.writeScriptBin "disable-pipebert-rtp" /* bash */ ''
|
||||||
|
set -eou pipefail
|
||||||
|
export PATH=$PATH:${lib.makeBinPath [ config.hardware.pulseaudio.package ]}
|
||||||
|
|
||||||
|
pactl unload-module module-rtp-send
|
||||||
|
pactl unload-module module-null-sink
|
||||||
|
'')
|
||||||
]);
|
]);
|
||||||
|
|
||||||
hardware.pulseaudio = {
|
hardware.pulseaudio = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user