liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 29a869b4faeac291947c5783d15580e92fcb1018
parent 5ae1b0a193315d44afb127fc84df783400f16f84
Author: Daniel Barlow <dan@telent.net>
Date:   Wed, 12 Jun 2024 22:10:27 +0100

qemu: use kmodloader for wifi

Diffstat:
Mdevices/families/qemu.nix | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/devices/families/qemu.nix b/devices/families/qemu.nix @@ -23,12 +23,17 @@ VIRTIO_BLK = "y"; VIRTIO_NET = "y"; }; + conditionalConfig = { + WLAN= { + MAC80211_HWSIM = "m"; + }; + }; }; hardware = let - mac80211 = pkgs.mac80211.override { - drivers = ["mac80211_hwsim"]; - klibBuild = config.system.outputs.kernel.modulesupport; + mac80211 = pkgs.kmodloader.override { + inherit (config.system.outputs) kernel; + targets = ["mac80211_hwsim"]; }; in { defaultOutput = "vmroot";