{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.

git-svn-id: a8013ee9bf6b053da8ea218c5059f3906c3a3af2@16065 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
