Add kmod to snd_usb_audio reload unit
This commit is contained in:
parent
23b9ddcbdd
commit
37cdd6e81d
@ -32,6 +32,9 @@ in {
|
|||||||
description = "Reload snd_usb_audio kernel module";
|
description = "Reload snd_usb_audio kernel module";
|
||||||
wantedBy = [ "sound.target" ];
|
wantedBy = [ "sound.target" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
|
path = with pkgs; [
|
||||||
|
kmod
|
||||||
|
];
|
||||||
script = ''
|
script = ''
|
||||||
rmmod snd_usb_audio
|
rmmod snd_usb_audio
|
||||||
insmod /run/booted-system/kernel-modules/lib/modules/$(uname -r)/extra/snd-usb-audio.ko.xz
|
insmod /run/booted-system/kernel-modules/lib/modules/$(uname -r)/extra/snd-usb-audio.ko.xz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user