2024-03-03 21:42:59 -05:00
|
|
|
{
|
2024-04-07 22:16:33 -04:00
|
|
|
config,
|
2024-06-14 21:18:00 -04:00
|
|
|
inputs,
|
2024-04-07 22:16:33 -04:00
|
|
|
lib,
|
2024-06-14 21:18:00 -04:00
|
|
|
pkgs,
|
2024-04-07 22:16:33 -04:00
|
|
|
...
|
|
|
|
}: {
|
2024-06-14 21:18:00 -04:00
|
|
|
boot = {
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod"];
|
2024-06-15 17:47:22 -04:00
|
|
|
kernelModules = ["amdgpu"];
|
2024-06-14 21:18:00 -04:00
|
|
|
};
|
2024-03-03 21:42:59 -05:00
|
|
|
|
2024-06-14 21:18:00 -04:00
|
|
|
kernelModules = ["kvm-amd" "amdgpu"];
|
2024-04-05 23:12:46 -04:00
|
|
|
};
|
|
|
|
|
2024-06-14 21:18:00 -04:00
|
|
|
hardware = {
|
2024-06-22 12:10:36 -04:00
|
|
|
cpu.amd.updateMicrocode = true;
|
2024-03-03 21:42:59 -05:00
|
|
|
|
2024-06-14 21:18:00 -04:00
|
|
|
enableAllFirmware = true;
|
|
|
|
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
extraPackages = with pkgs; [rocmPackages.clr.icd amdvlk];
|
|
|
|
extraPackages32 = with pkgs; [driversi686Linux.amdvlk];
|
|
|
|
};
|
2024-03-24 14:06:24 -04:00
|
|
|
};
|
2024-03-06 22:14:16 -05:00
|
|
|
|
2024-03-03 21:42:59 -05:00
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2024-06-22 12:10:36 -04:00
|
|
|
|
|
|
|
services.fstrim.enable = true;
|
2024-03-03 21:42:59 -05:00
|
|
|
}
|