intel microcode update module

svn path=/nixos/trunk/; revision=32477
This commit is contained in:
Peter Simons 2012-02-22 20:28:44 +00:00
parent 57af9d74e2
commit 87c102ce2e
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{pkgs, config, ...}:
{
###### interface
options = {
hardware.cpu.intel.updateMicrocode = pkgs.lib.mkOption {
default = false;
type = pkgs.lib.types.bool;
description = ''
Update the CPU microcode for intel processors.
'';
};
};
###### implementation
config = pkgs.lib.mkIf config.hardware.cpu.intel.updateMicrocode {
hardware.firmware = [pkgs.microcodeIntel];
jobs.microcode = {
name = "microcode";
description = "load microcode";
startOn = "started udev";
exec = "modprobe microcode";
path = [config.system.sbin.modprobe];
task = true;
};
};
}

View file

@ -14,6 +14,7 @@
./config/timezone.nix
./config/unix-odbc-drivers.nix
./config/users-groups.nix
./hardware/cpu/intel-microcode.nix
./hardware/network/intel-2100bg.nix
./hardware/network/intel-2200bg.nix
./hardware/network/intel-3945abg.nix