{ config, pkgs, ... }: { services.xserver.videoDrivers = ["nvidia"]; hardware = { opengl.enable = true; nvidia = { package = config.boot.kernelPackages.nvidiaPackages.stable; modesetting.enable = true; powerManagement.enable = false; powerManagement.finegrained = false; open = true; nvidiaSettings = true; }; }; }