* "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
This commit is contained in:
Eelco Dolstra 2009-05-20 10:44:50 +00:00
parent f99fe41f65
commit be85fd2500
7 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{pkgs, config, ...}:
{
services = {
udev = {
# Warning: setting this option requires acceptance of the firmware
# license, see http://ipw2200.sourceforge.net/firmware.php?fid=7.
addFirmware = [ pkgs.ipw2200fw ];
};
};
}

View file

@ -0,0 +1,21 @@
{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 ];
};
};
}

View file

@ -0,0 +1,21 @@
{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 ];
};
};
}

View file

@ -0,0 +1,9 @@
{pkgs, config, ...}:
{
hardware = {
pcmcia = {
firmware = [ (pkgs.lib.cleanSource ./firmware) ];
};
};
}

View file

@ -0,0 +1,8 @@
vers_1 5.0, "SMC", "SMC2632W", "Version 01.02", ""
manfid 0x0156, 0x0002
funcid network_adapter
cftable_entry 0x01 [default]
Vcc Vmin 3000mV Vmax 3300mV Iavg 300mA Ipeak 300mA
Idown 10mA
io 0x0000-0x003f [lines=6] [16bit]
irq mask 0xffff [level] [pulse]

View file

@ -0,0 +1,9 @@
{pkgs, config, ...}:
{
services = {
udev = {
addFirmware = [ pkgs.zd1211fw ];
};
};
}

View file

@ -0,0 +1,25 @@
{pkgs, config, ...}:
let
wisGo7007 = config.boot.kernelPackages.wis_go7007;
wisGo7007Pkg = [ wis_go7007 ];
wisGo7007Firmware = [ "${wis_go7007}/firmware" ];
in
{
boot = {
extraModulePackages = wisGo7007Pkg;
};
environment = {
extraPackages = wisGo7007Pkg;
};
services = {
udev = {
addFirmware = wisGo7007Firmware;
addUdevPkgs = wisGo7007Pkg;
};
};
}