1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-30 06:49:43 +01:00

common/cpu: default microcode updates to enableRedistributableFirmware

This commit is contained in:
Yegor Timoshenko 2018-10-30 18:16:36 +00:00
parent 5c8cab8493
commit 1d254aceda
No known key found for this signature in database
GPG key ID: B0B0D739BB47A03A
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,6 @@
{ config, lib, ... }:
{ {
hardware.cpu.amd.updateMicrocode = true; hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -1,9 +1,10 @@
{ lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
boot.initrd.kernelModules = [ "i915" ]; boot.initrd.kernelModules = [ "i915" ];
hardware.cpu.intel.updateMicrocode = lib.mkDefault true; hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.opengl.extraPackages = with pkgs; [ hardware.opengl.extraPackages = with pkgs; [
vaapiIntel vaapiIntel