qemu: switch to building wireless as kernel modules
This is a hefty change * add support for kernel backports project * build wireless stack/drivers as modules from a backported kernel * create a service to load/unload the modules
This commit is contained in:
1 parent
891db9edc5
commit
751920c8fc
9 files changed
+388
-32
No files matched your search
@@ -15,10 +15,6 @@ in rec {
|
||||
|
||||
imports = [ ../../modules/wlan.nix ];
|
||||
|
||||
kernel.config = {
|
||||
MAC80211_HWSIM = "y";
|
||||
};
|
||||
|
||||
|
||||
services.wlan = interface { type = "hardware"; device = "wlan0"; };
|
||||
|
||||
@@ -41,9 +37,10 @@ in rec {
|
||||
|
||||
services.default = target {
|
||||
name = "default";
|
||||
contents = with services; [
|
||||
contents = with config.services; [
|
||||
loopback
|
||||
hostap
|
||||
wlan_module
|
||||
];
|
||||
};
|
||||
defaultProfile.packages = with pkgs; [ tcpdump ] ;
|
||||
|
||||
Reference in new issue
Block a user