global/security: only include microcode on x86_64
This commit is contained in:
parent
1d20bc82fd
commit
15b74e7fe0
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
inherit (config.nixpkgs.hostPlatform) system;
|
||||
in
|
||||
{
|
||||
security = {
|
||||
sudo.wheelNeedsPassword = false;
|
||||
|
@ -18,8 +21,8 @@ with lib;
|
|||
|
||||
hardware = {
|
||||
enableRedistributableFirmware = mkDefault true;
|
||||
cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
|
||||
cpu.amd.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
|
||||
cpu.intel.updateMicrocode = mkDefault (config.hardware.enableRedistributableFirmware && system == "x86_64-linux");
|
||||
cpu.amd.updateMicrocode = mkDefault (config.hardware.enableRedistributableFirmware && system == "x86_64-linux");
|
||||
};
|
||||
|
||||
users.mutableUsers = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue