{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.iwlwifi4965ucode ];
    };
  };
}

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

Use the right iwl4965 firmware depending on the kernel version.
Use the right iwl4965 firmware depending on the kernel version.

svn path=/nixos/branches/modular-nixos/; revision=16065
