2009-05-20 12:44:50 +02:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (config.boot) kernelPackages;
|
|
|
|
in
|
|
|
|
|
2009-05-24 20:36:32 +02:00
|
|
|
# !!! make this optional
|
|
|
|
|
2009-05-20 12:44:50 +02:00
|
|
|
{
|
|
|
|
boot = {
|
|
|
|
extraModulePackages =
|
|
|
|
pkgs.lib.optional
|
2009-05-24 20:36:32 +02:00
|
|
|
(!kernelPackages.kernel.features ? iwlwifi)
|
2009-05-20 12:44:50 +02:00
|
|
|
kernelPackages.iwlwifi;
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
udev = {
|
|
|
|
addFirmware = [ pkgs.iwlwifi3945ucode ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|