summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2025-10-06 16:06:29 +0300
committerKyren223 <contact@kyren.codes>2025-10-06 16:06:29 +0300
commita429027fe6944fcc7871e7cb3e4abc2d4ba1b378 (patch)
tree3c9f82ed4acb70b3641e9c883e492cedfe709f11 /hosts
parentbb160a1c66a1cab7d6ab4cfed5b3de463e142139 (diff)
Tried some mesa stuff
Diffstat (limited to 'hosts')
-rw-r--r--hosts/hardware-configuration-desktop.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/hosts/hardware-configuration-desktop.nix b/hosts/hardware-configuration-desktop.nix
index 2d93fb2..7c6ddb7 100644
--- a/hosts/hardware-configuration-desktop.nix
+++ b/hosts/hardware-configuration-desktop.nix
@@ -9,7 +9,7 @@
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
- boot.initrd.kernelModules = [ ];
+ boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
@@ -36,4 +36,10 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+
+ hardware.opengl = { enable = true; };
+ services.xserver.videoDrivers = [ "amdgpu" ];
+ # environment.variables = {
+ # AMD_VULKAN_ICD = "RADV"; # Force Mesa RADV over AMDVLK for better perf
+ # };
}