26 lines
538 B
Nix
26 lines
538 B
Nix
|
{
|
||
|
inputs,
|
||
|
modulesPath,
|
||
|
...
|
||
|
}: {
|
||
|
imports = [
|
||
|
"${modulesPath}/installer/scan/not-detected.nix"
|
||
|
|
||
|
inputs.hardware.nixosModules.common-cpu-amd
|
||
|
inputs.hardware.nixosModules.common-gpu-amd
|
||
|
inputs.hardware.nixosModules.common-pc-ssd
|
||
|
];
|
||
|
|
||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||
|
|
||
|
boot = {
|
||
|
initrd = {
|
||
|
availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "sd_mod"];
|
||
|
kernelModules = ["amdgpu"];
|
||
|
};
|
||
|
kernelModules = ["kvm-amd"];
|
||
|
};
|
||
|
|
||
|
powerManagement.cpuFreqGovernor = "performance";
|
||
|
}
|