forked from mirrors/nixpkgs
intel microcode update module
svn path=/nixos/trunk/; revision=32477
This commit is contained in:
parent
57af9d74e2
commit
87c102ce2e
34
modules/hardware/cpu/intel-microcode.nix
Normal file
34
modules/hardware/cpu/intel-microcode.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue