ab1676b457
svn path=/nixos/branches/modular-nixos/; revision=16353
22 lines
342 B
Nix
22 lines
342 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 = [ kernelPackages.iwlwifi4965ucode ];
|
|
};
|
|
};
|
|
}
|