be85fd2500
tree. (The configurations tree is not for general use.) svn path=/nixos/branches/modular-nixos/; revision=15672
21 lines
332 B
Nix
21 lines
332 B
Nix
{pkgs, config, ...}:
|
|
|
|
let
|
|
inherit (config.boot) kernelPackages;
|
|
inherit (kernelPackages) kernel;
|
|
in
|
|
|
|
{
|
|
boot = {
|
|
extraModulePackages =
|
|
pkgs.lib.optional
|
|
(!kernel.features ? iwlwifi)
|
|
kernelPackages.iwlwifi;
|
|
};
|
|
|
|
services = {
|
|
udev = {
|
|
addFirmware = [ pkgs.iwlwifi3945ucode ];
|
|
};
|
|
};
|
|
}
|