diff --git a/hosts/acer.nix b/hosts/acer.nix index ab65b55..438b0fe 100644 --- a/hosts/acer.nix +++ b/hosts/acer.nix @@ -62,6 +62,7 @@ rec { pc = true; enablePlasma = true; intelCpu = false; + amdCpu = true; noMitigations = false; enablePulseaudio = true; sshd = true; diff --git a/modules/default.nix b/modules/default.nix index f7074ed..36584c4 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -3,6 +3,7 @@ { imports = [ hardware/intel-cpu.nix + hardware/amd-cpu.nix hardware/no-mitigations.nix system/roles.nix diff --git a/modules/hardware/amd-cpu.nix b/modules/hardware/amd-cpu.nix new file mode 100644 index 0000000..0481b8d --- /dev/null +++ b/modules/hardware/amd-cpu.nix @@ -0,0 +1,10 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + options.lumpiasty.amdCpu = lib.mkEnableOption "Enable amd CPU"; + + config = lib.mkIf config.lumpiasty.amdCpu { + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = true; + }; +} \ No newline at end of file