2023-11-04 02:28:27 +01:00
|
|
|
{ lib, config, ... }: {
|
|
|
|
|
2024-04-14 07:57:07 +02:00
|
|
|
config = lib.mkIf (config.syscfg.make.gui) {
|
2023-11-04 02:28:27 +01:00
|
|
|
xdg.configFile."pipewire/pipewire-pulse.conf.d/desktop.conf".text = ''
|
|
|
|
context.modules = [
|
|
|
|
{ name = libpipewire-module-loopback
|
|
|
|
args = {
|
|
|
|
node.description = "Desktop"
|
|
|
|
node.name = "Desktop"
|
|
|
|
audio.position = [ FL FR ]
|
|
|
|
capture.props = {
|
|
|
|
media.class = Audio/Sink
|
|
|
|
node.name = "Desktop"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{ name = libpipewire-module-loopback
|
|
|
|
args = {
|
|
|
|
node.description = "Music"
|
|
|
|
node.name = "Music"
|
|
|
|
audio.position = [ FL FR ]
|
|
|
|
capture.props = {
|
|
|
|
media.class = Audio/Sink
|
|
|
|
node.name = "Music"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|