mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
2cc8d0363e
It needs udevd to be running because the modules may require firmware. Thanks to Mathijs and Arie for pointing this out. svn path=/nixos/trunk/; revision=33234
30 lines
465 B
Nix
30 lines
465 B
Nix
{ config, pkgs, ... }:
|
|
|
|
with pkgs.lib;
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
hardware.cpu.intel.updateMicrocode = mkOption {
|
|
default = false;
|
|
type = types.bool;
|
|
description = ''
|
|
Update the CPU microcode for Intel processors.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.hardware.cpu.intel.updateMicrocode {
|
|
hardware.firmware = [ pkgs.microcodeIntel ];
|
|
boot.kernelModules = [ "microcode" ];
|
|
};
|
|
|
|
}
|