nixcfg/hosts/mauville/hardware.nix

35 lines
645 B
Nix
Raw Normal View History

{
2024-04-07 22:16:33 -04:00
config,
inputs,
2024-04-07 22:16:33 -04:00
lib,
pkgs,
2024-04-07 22:16:33 -04:00
...
}: {
boot = {
initrd = {
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod"];
2024-06-15 17:47:22 -04:00
kernelModules = ["amdgpu"];
};
kernelModules = ["kvm-amd" "amdgpu"];
2024-04-05 23:12:46 -04:00
};
hardware = {
cpu.amd.updateMicrocode = true;
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
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
services.fstrim.enable = true;
}