x86_64 firmware on that target only
This commit is contained in:
parent
bbdb728095
commit
03a1560b0f
@ -12,6 +12,8 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
# Enable microcode
|
||||||
|
firmware.x86_64 = true;
|
||||||
# Use GRUB 2 for BIOS
|
# Use GRUB 2 for BIOS
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
timeout = 2;
|
timeout = 2;
|
||||||
|
@ -9,6 +9,8 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
# Enable microcode
|
||||||
|
firmware.x86_64 = true;
|
||||||
# Use GRUB2 for EFI
|
# Use GRUB2 for EFI
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
{ config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.firmware;
|
||||||
|
in {
|
||||||
|
options.firmware.x86_64 = {
|
||||||
|
enable = mkEnableOption "enable x86_64 firmware";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.firmware.x86_64 {
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
|
};
|
||||||
|
|
||||||
# services.fwupd.enable = true;
|
# services.fwupd.enable = true;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user