nixpkgs/modules/hardware/network/Intel3945ABG.nix
Eelco Dolstra be85fd2500 * "hardware" belongs in the NixOS tree, not in the configurations
tree.  (The configurations tree is not for general use.)

svn path=/nixos/branches/modular-nixos/; revision=15672
2009-05-20 10:44:50 +00:00

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 ];
};
};
}