Skip to content

Commit

Permalink
common/cpu: default microcode updates to enableRedistributableFirmware
Browse files Browse the repository at this point in the history
  • Loading branch information
lukateras committed Oct 30, 2018
1 parent 5c8cab8 commit 1d254ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion common/cpu/amd/default.nix
@@ -1,3 +1,6 @@
{ config, lib, ... }:

{
hardware.cpu.amd.updateMicrocode = true;
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}
5 changes: 3 additions & 2 deletions common/cpu/intel/default.nix
@@ -1,9 +1,10 @@
{ lib, pkgs, ... }:
{ config, lib, pkgs, ... }:

{
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; [
vaapiIntel
Expand Down

0 comments on commit 1d254ac

Please sign in to comment.