hosts/main: move wireplumber configuration to git
This commit is contained in:
parent
79527c7663
commit
7ce2abb122
6 changed files with 75 additions and 0 deletions
|
@ -45,6 +45,18 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.pipewire.wireplumber.configPackages = [(
|
||||||
|
pkgs.stdenvNoCC.mkDerivation {
|
||||||
|
name = "wireplumber-config";
|
||||||
|
src = ./wireplumber;
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/wireplumber/wireplumber.conf.d
|
||||||
|
cp -r $src/* $out/share/wireplumber/wireplumber.conf.d
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
)];
|
||||||
|
|
||||||
services.printing.startWhenNeeded = false;
|
services.printing.startWhenNeeded = false;
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
|
|
10
hosts/main/wireplumber/51-digital-output.conf
Normal file
10
hosts/main/wireplumber/51-digital-output.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
monitor.alsa.rules = [{
|
||||||
|
matches = [{
|
||||||
|
node.name = "alsa_output.pci-0000_00_1f.3.iec958-stereo"
|
||||||
|
}]
|
||||||
|
actions = {
|
||||||
|
update-props = {
|
||||||
|
node.description = "Digital Output"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
10
hosts/main/wireplumber/51-hdmi-otuput.conf
Normal file
10
hosts/main/wireplumber/51-hdmi-otuput.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
monitor.alsa.rules = [{
|
||||||
|
matches = [{
|
||||||
|
node.name = "alsa_output.pci-0000_01_00.1.hdmi-stereo"
|
||||||
|
}]
|
||||||
|
actions = {
|
||||||
|
update-props = {
|
||||||
|
node.description = "Monitor speakers"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
11
hosts/main/wireplumber/51-razerHeadphones-device.conf
Normal file
11
hosts/main/wireplumber/51-razerHeadphones-device.conf
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
monitor.alsa.rules = [{
|
||||||
|
matches = [{
|
||||||
|
device.name = "alsa_card.usb-Razer_Razer_USB_Audio_Controller_000000000000000000000000-00"
|
||||||
|
}]
|
||||||
|
actions = {
|
||||||
|
update-props = {
|
||||||
|
device.description = "Headphones"
|
||||||
|
device.profile = "Pro Audio"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
10
hosts/main/wireplumber/51-razerHeadphones-input.conf
Normal file
10
hosts/main/wireplumber/51-razerHeadphones-input.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
monitor.alsa.rules = [{
|
||||||
|
matches = [{
|
||||||
|
node.name = "alsa_input.usb-Razer_Razer_USB_Audio_Controller_000000000000000000000000-00.pro-input-0"
|
||||||
|
}]
|
||||||
|
actions = {
|
||||||
|
update-props = {
|
||||||
|
node.description = "Headphones"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
22
hosts/main/wireplumber/51-razerHeadphones-output.conf
Normal file
22
hosts/main/wireplumber/51-razerHeadphones-output.conf
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
monitor.alsa.rules = [
|
||||||
|
{
|
||||||
|
matches = [{
|
||||||
|
node.name = "alsa_output.usb-Razer_Razer_USB_Audio_Controller_000000000000000000000000-00.pro-output-0"
|
||||||
|
}]
|
||||||
|
actions = {
|
||||||
|
update-props = {
|
||||||
|
node.description = "Headphones (Chat)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{
|
||||||
|
node.name = "alsa_output.usb-Razer_Razer_USB_Audio_Controller_000000000000000000000000-00.pro-output-1"
|
||||||
|
}]
|
||||||
|
actions = {
|
||||||
|
update-props = {
|
||||||
|
node.description = "Headphones (Game)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in a new issue