Add kmod to snd_usb_audio reload unit

This commit is contained in:
Jordan Holt 2024-05-04 12:48:53 +01:00
parent 23b9ddcbdd
commit 37cdd6e81d
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -32,6 +32,9 @@ in {
description = "Reload snd_usb_audio kernel module";
wantedBy = [ "sound.target" ];
serviceConfig.Type = "oneshot";
path = with pkgs; [
kmod
];
script = ''
rmmod snd_usb_audio
insmod /run/booted-system/kernel-modules/lib/modules/$(uname -r)/extra/snd-usb-audio.ko.xz