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, ... }: { { 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 = { config = {
home.file = { xdg.configFile = {
".config/pipewire/pipewire.conf.d/99-rtp-sink.conf".text = '' "pipewire/pipewire.conf.d/99-rtp-sink.conf".text = ''
context.modules = [ context.modules = [
{ name = libpipewire-module-rtp-sink { name = libpipewire-module-rtp-sink
args = { args = {
@ -30,9 +28,14 @@
node.name = "rtp-sink" node.name = "rtp-sink"
} }
} }
flags = [ nofail ]
} }
] ]
''; '';
"systemd/user/pipewire.service.d/override.conf".text = ''
[Unit]
ExecStartPre=/usr/bin/env sleep 10s
'';
}; };
}; };
} }