mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
26 lines
444 B
Nix
26 lines
444 B
Nix
{ config, pkgs, ... }:
|
|
|
|
/*
|
|
This hardware profile corresponds to any machine which has an AMD Ryzen processor.
|
|
*/
|
|
|
|
{
|
|
deploy.profile.hardware.ryzen = true;
|
|
|
|
boot = {
|
|
kernelModules = [
|
|
"msr"
|
|
"ryzen_smu"
|
|
"kvm-amd"
|
|
];
|
|
kernelParams = [ "amd_iommu=on" ];
|
|
};
|
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
lm_sensors
|
|
ryzen-smu-monitor_cpu
|
|
ryzen-monitor
|
|
];
|
|
}
|