1
0
Fork 0
puter/hosts/insomniac/hardware.nix

33 lines
590 B
Nix
Raw Normal View History

2025-03-01 22:21:00 +01:00
{
inputs,
modulesPath,
...
2025-05-11 22:49:04 +02:00
}:
{
2025-03-01 22:21:00 +01:00
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 = {
2025-05-11 22:49:04 +02:00
availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"sd_mod"
];
kernelModules = [ "amdgpu" ];
2025-03-01 22:21:00 +01:00
};
2025-05-11 22:49:04 +02:00
kernelModules = [ "kvm-amd" ];
2025-03-01 22:21:00 +01:00
};
powerManagement.cpuFreqGovernor = "performance";
}