mirror of
https://github.com/Ascyii/nixos.git
synced 2025-12-31 22:44:23 -05:00
18 lines
374 B
Nix
18 lines
374 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
hardware.graphics = {
|
|
enable = true;
|
|
};
|
|
services.xserver.videoDrivers = ["nvidia"];
|
|
nixpkgs.config.cudaSupport = true;
|
|
hardware.enableAllFirmware = true;
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = false;
|
|
open = false;
|
|
nvidiaSettings = true;
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
};
|
|
}
|