24 lines
836 B
Nix
24 lines
836 B
Nix
|
{
|
||
|
modulesPath,
|
||
|
nixos-hardware,
|
||
|
...
|
||
|
}: {
|
||
|
imports = [
|
||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||
|
nixos-hardware.nixosModules.common-cpu-amd
|
||
|
nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||
|
nixos-hardware.nixosModules.common-cpu-amd-zenpower
|
||
|
nixos-hardware.nixosModules.common-gpu-amd
|
||
|
nixos-hardware.nixosModules.common-pc
|
||
|
nixos-hardware.nixosModules.common-pc-ssd
|
||
|
];
|
||
|
hardware.cpu.amd.updateMicrocode = true;
|
||
|
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" "k10temp"];
|
||
|
boot.initrd.kernelModules = ["amdgpu"];
|
||
|
boot.kernelModules = ["kvm-amd" "i2c-dev" "i2c-piix4"];
|
||
|
boot.extraModulePackages = [];
|
||
|
nix.settings.cores = 4;
|
||
|
# use the lowest frequency possible, to save power
|
||
|
powerManagement.cpuFreqGovernor = "powersave";
|
||
|
}
|