From a6b75651cd718853f88e88a158f1f953fad2e299 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 3 Oct 2023 22:40:28 +0200 Subject: [PATCH] x: disable mitigations --- 2configs/performance/disable-mitigations.nix | 5 +++++ machines/x/config.nix | 3 ++- machines/x/x13/default.nix | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 2configs/performance/disable-mitigations.nix diff --git a/2configs/performance/disable-mitigations.nix b/2configs/performance/disable-mitigations.nix new file mode 100644 index 0000000..95171ae --- /dev/null +++ b/2configs/performance/disable-mitigations.nix @@ -0,0 +1,5 @@ +{ + boot.kernelParams = [ + "mitigations=off" + ]; +} diff --git a/machines/x/config.nix b/machines/x/config.nix index ec6a904..650f68f 100644 --- a/machines/x/config.nix +++ b/machines/x/config.nix @@ -11,6 +11,7 @@ # (self + "/makefu/2configs/hw/mceusb.nix") # (self + "/2configs/hw/rtl8812au.nix") ../../2configs/hw/network-manager.nix + ../../2configs/performance/disable-mitigations.nix # ../../2configs/hw/stk1160.nix # ../../2configs/hw/irtoy.nix # ../../2configs/hw/malduino_elite.nix @@ -196,7 +197,7 @@ # ../../2configs/lanparty/lancache-dns.nix # ../../2configs/lanparty/samba.nix # ../../2configs/lanparty/mumble-server.nix - ../../2configs/wireguard/wiregrill.nix + ../../2configs/wireguard/wiregrill-client.nix # { # networking.wireguard.interfaces.wg0 = { diff --git a/machines/x/x13/default.nix b/machines/x/x13/default.nix index a1f3aab..7d632a1 100644 --- a/machines/x/x13/default.nix +++ b/machines/x/x13/default.nix @@ -20,6 +20,9 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; + boot.kernelParams = [ + "amd_pstate=active" + ]; boot.kernelPackages = lib.mkForce pkgs.linuxPackages;