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

35 lines
657 B
Nix
Raw Normal View History

2024-12-01 04:05:16 +01:00
{
inputs,
modulesPath,
...
2025-05-11 22:49:04 +02:00
}:
{
2024-12-01 04:05:16 +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"
"ahci"
"xhci_pci"
"usbhid"
"usb_storage"
"sd_mod"
];
kernelModules = [ "amdgpu" ];
2024-12-01 04:05:16 +01:00
};
2025-05-11 22:49:04 +02:00
kernelModules = [ "kvm-amd" ];
binfmt.emulatedSystems = [ "aarch64-linux" ];
2024-12-01 04:05:16 +01:00
};
powerManagement.cpuFreqGovernor = "performance";
}