Ensure correct snd_usb_audio is loaded on boot
This commit is contained in:
parent
03e4cc7d9e
commit
c7e0f66295
@ -27,6 +27,17 @@ in {
|
|||||||
(patched)
|
(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 = {
|
environment.etc = {
|
||||||
"pipewire/pipewire.conf.d/10-network.conf".text = ''
|
"pipewire/pipewire.conf.d/10-network.conf".text = ''
|
||||||
context.modules = [
|
context.modules = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user