mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 17:11:53 -05:00
36 lines
700 B
Nix
36 lines
700 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = ["nvme" "sd_mod" "usb_storage" "usbhid" "xhci_pci"];
|
|
kernelModules = ["amdgpu"];
|
|
};
|
|
|
|
kernelModules = ["kvm-amd" "amdgpu"];
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
};
|
|
|
|
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];
|
|
};
|
|
};
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
services.fstrim.enable = true;
|
|
}
|