mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
c66094a310
svn path=/nixos/branches/modular-nixos/; revision=15702
23 lines
338 B
Nix
23 lines
338 B
Nix
{pkgs, config, ...}:
|
|
|
|
let
|
|
inherit (config.boot) kernelPackages;
|
|
in
|
|
|
|
# !!! make this optional
|
|
|
|
{
|
|
boot = {
|
|
extraModulePackages =
|
|
pkgs.lib.optional
|
|
(!kernelPackages.kernel.features ? iwlwifi)
|
|
kernelPackages.iwlwifi;
|
|
};
|
|
|
|
services = {
|
|
udev = {
|
|
addFirmware = [ pkgs.iwlwifi3945ucode ];
|
|
};
|
|
};
|
|
}
|