pipewire: fix pipewire failing to start when offline

This commit is contained in:
Leonardo Eugênio 2023-02-08 12:43:23 -03:00
parent a9fba7556e
commit 700148e1ee

View file

@ -1,9 +1,7 @@
{ config, pkgs, lib, ... }: {
# RNNoise is a noise supperssion neural network
# Here we use it as a plugin for pipewire to create a virtual microphone
config = {
home.file = {
".config/pipewire/pipewire.conf.d/99-rtp-sink.conf".text = ''
xdg.configFile = {
"pipewire/pipewire.conf.d/99-rtp-sink.conf".text = ''
context.modules = [
{ name = libpipewire-module-rtp-sink
args = {
@ -30,9 +28,14 @@
node.name = "rtp-sink"
}
}
flags = [ nofail ]
}
]
'';
"systemd/user/pipewire.service.d/override.conf".text = ''
[Unit]
ExecStartPre=/usr/bin/env sleep 10s
'';
};
};
}