28 lines
598 B
Nix
28 lines
598 B
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{ config, pkgs, ... }:
|
||
|
||
{
|
||
services.xserver.videoDrivers = ["nvidia"];
|
||
|
||
hardware.opengl = {
|
||
enable = true;
|
||
driSupport = true;
|
||
driSupport32Bit = true;
|
||
};
|
||
|
||
hardware.nvidia = {
|
||
modesetting.enable = true;
|
||
|
||
powerManagement.finegrained = false;
|
||
|
||
open = false;
|
||
|
||
nvidiaSettings = true;
|
||
|
||
package = config.boot.kernelPackages.nvidiaPackages.production;
|
||
};
|
||
}
|