Ensure correct snd_usb_audio is loaded on boot

This commit is contained in:
Jordan Holt 2024-04-28 12:38:15 +01:00
parent 03e4cc7d9e
commit c7e0f66295
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -27,6 +27,17 @@ in {
(patched)
];
# Workaround for mainline module loading instead of patched module
systemd.services.reload-snd-usb-audio = {
description = "Reload snd_usb_audio kernel module";
wantedBy = [ "sound.target" ];
serviceConfig.Type = "oneshot";
script = ''
rmmod snd_usb_audio
insmod /run/booted-system/kernel-modules/lib/modules/$(uname -r)/extra/snd-usb-audio.ko.xz
'';
};
environment.etc = {
"pipewire/pipewire.conf.d/10-network.conf".text = ''
context.modules = [