21 lines
504 B
Nix
21 lines
504 B
Nix
{ config, ... }:
|
|
|
|
# https://nixos.wiki/wiki/Nvidia
|
|
# https://wiki.nixos.org/wiki/NVIDIA
|
|
{
|
|
hardware.graphics.enable = true;
|
|
hardware.graphics.enable32Bit = true;
|
|
|
|
hardware.nvidia = {
|
|
package = config.boot.kernelPackages.nvidiaPackages.legacy_580;
|
|
hardware.nvidia.modesetting.enable = true;
|
|
|
|
# 1080 not compatible
|
|
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
|
open = false;
|
|
|
|
nvidiaSettings = true;
|
|
};
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
}
|