13 lines
378 B
Nix
13 lines
378 B
Nix
{ config, lib, ... }:
|
|
|
|
{
|
|
nixpkgs.config.allowUnfree = true; # Cuz nvidia drivers and stuff
|
|
nixpkgs.config.cudaSupport = true;
|
|
hardware.graphics.enable = true;
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
open = false;
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
};
|
|
} |