18 lines
423 B
Nix
18 lines
423 B
Nix
{ config, lib, ... }:
|
|
{
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
builtins.elem (lib.getName pkg) [
|
|
"nvidia-x11"
|
|
"nvidia-settings"
|
|
];
|
|
boot.initrd.kernelModules = [ "nvidia" ];
|
|
hardware.graphics.enable = true;
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
open = true;
|
|
nvidiaSettings = true;
|
|
};
|
|
}
|