qemu: use kmodloader for wifi
This commit is contained in:
parent
5ae1b0a193
commit
29a869b4fa
@ -23,12 +23,17 @@
|
|||||||
VIRTIO_BLK = "y";
|
VIRTIO_BLK = "y";
|
||||||
VIRTIO_NET = "y";
|
VIRTIO_NET = "y";
|
||||||
};
|
};
|
||||||
|
conditionalConfig = {
|
||||||
|
WLAN= {
|
||||||
|
MAC80211_HWSIM = "m";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
hardware =
|
hardware =
|
||||||
let
|
let
|
||||||
mac80211 = pkgs.mac80211.override {
|
mac80211 = pkgs.kmodloader.override {
|
||||||
drivers = ["mac80211_hwsim"];
|
inherit (config.system.outputs) kernel;
|
||||||
klibBuild = config.system.outputs.kernel.modulesupport;
|
targets = ["mac80211_hwsim"];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
defaultOutput = "vmroot";
|
defaultOutput = "vmroot";
|
||||||
|
Loading…
Reference in New Issue
Block a user