mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 14:54:26 -05:00
20 lines
414 B
Nix
20 lines
414 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
hardware.graphics = {
|
|
enable = true;
|
|
};
|
|
services.xserver.videoDrivers = ["nvidia"];
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = false;
|
|
open = false;
|
|
nvidiaSettings = true;
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
};
|
|
|
|
# This causes very long build times
|
|
#nixpkgs.config.cudaSupport = true;
|
|
#hardware.enableAllFirmware = true;
|
|
}
|