aboutsummaryrefslogtreecommitdiff
path: root/profiles/hardware/amd.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-05-02 17:50:50 -0700
committerFranck Cuny <franck@fcuny.net>2023-05-02 17:50:50 -0700
commit80b2a5ed2cf30c66ec75480c24c53c7b329c3381 (patch)
tree11c574af791e9a71ec39b03ffa682b58584bf796 /profiles/hardware/amd.nix
parentprofiles/default: move default packages there (diff)
downloadinfra-80b2a5ed2cf30c66ec75480c24c53c7b329c3381.tar.gz
profiles/hardware: create a few profiles related to hardware
Diffstat (limited to 'profiles/hardware/amd.nix')
-rw-r--r--profiles/hardware/amd.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/profiles/hardware/amd.nix b/profiles/hardware/amd.nix
new file mode 100644
index 0000000..dc933ee
--- /dev/null
+++ b/profiles/hardware/amd.nix
@@ -0,0 +1,6 @@
+{ ... }:
+{
+ hardware.cpu.amd.updateMicrocode = true;
+ boot.kernelModules = [ "kvm-amd" "k10temp" ];
+ boot.kernelParams = [ "amd_pstate=passive" ];
+}