home manager: my pipewire configuration

This commit is contained in:
emmatherock
2026-06-19 22:44:46 -03:00
parent 75bdd4217f
commit 1891aea4eb
7 changed files with 116 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
{
xdg.configFile = {
"pipewire/pipewire.conf.d/10-discord.conf".source = ./pipewire/10-discord.conf;
"pipewire/pipewire.conf.d/10-mic.conf".source = ./pipewire/10-mic.conf;
"pipewire/pipewire.conf.d/10-misc.conf".source = ./pipewire/10-misc.conf;
"pipewire/pipewire.conf.d/10-music.conf".source = ./pipewire/10-music.conf;
"pipewire/pipewire.conf.d/10-vban-send.conf".source = ./pipewire/10-vban-send.conf;
};
}
+1
View File
@@ -1,5 +1,6 @@
{
imports = [
./audio.nix
./desktop-apps.nix
./gaming.nix
./git.nix
+25
View File
@@ -0,0 +1,25 @@
context.objects = [
{
factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "discord"
media.class = Audio/Sink
audio.position = [ FL FR ]
monitor.channel-volumes = true
monitor.passthrough = true
}
}
{
factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "discord-chain"
node.description = "discord-chain"
media.class = Audio/Sink
audio.position = [ FL FR ]
monitor.channel-volumes = true
monitor.passthrough = true
}
}
]
+15
View File
@@ -0,0 +1,15 @@
context.objects = [
{ factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "Mic"
node.description = "Mic"
media.class = Audio/Source/Virtual
object.linger = true
audio.position = [ FL FR ]
monitor.channel-volumes = true
monitor.passthrough = true
}
}
]
+14
View File
@@ -0,0 +1,14 @@
context.objects = [
{
factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "misc-chain"
node.description = "misc-chain"
media.class = Audio/Sink
audio.position = [ FL FR ]
monitor.channel-volumes = true
monitor.passthrough = true
}
}
]
+25
View File
@@ -0,0 +1,25 @@
context.objects = [
{
factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "music"
media.class = Audio/Sink
audio.position = [ FL FR ]
monitor.channel-volumes = true
monitor.passthrough = true
}
}
{
factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "music-chain"
node.description = "music-chain"
media.class = Audio/Sink
audio.position = [ FL FR ]
monitor.channel-volumes = true
monitor.passthrough = true
}
}
]
@@ -0,0 +1,27 @@
context.modules = [
{ name = libpipewire-module-vban-send
args = {
local.ifname = "enp6s0"
source.ip = "192.168.1.21"
destination.ip = "192.168.1.20"
#destination.port = 6980
#net.mtu = 1500
#net.ttl = 1
#net.loop = false
#sess.min-ptime = 2
#sess.max-ptime = 20
sess.name = "mic-vban"
sess.media = "audio"
audio.format = "S24LE"
audio.rate = 48000
audio.channels = 2
audio.position = [ FL FR ]
stream.props = {
media.class = "Audio/Sink"
node.name = "vban-sender"
}
}
#flags = [ nofail ]
}
]