add nvidia support

This commit is contained in:
k3t
2026-09-03 07:52:07 +00:00
parent 4e32f3c193
commit 900a830660
3 changed files with 42 additions and 20 deletions
+22
View File
@@ -0,0 +1,22 @@
{ pkgs, ... }:
{
nixpkgs.config.rocmSupport = true;
hardware = {
enableRedistributableFirmware = true;
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
vkbasalt
mangohud
lsfg-vk
];
};
nvidia = {
open = true;
modesetting = true;
};
};
services.xserver.videoDrivers = [ "nvidia" ];
}