summary refs log tree commit diff stats
path: root/system/settings/hardware/nvidia-gpu.nix
blob: c666265908f3211901a23e4bc8f31e84c591e35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, pkgs, ... }:

let
  nvidia_x11 = config.boot.kernelPackages.nvidia_x11;
in { services.xserver.videoDrivers = [ "nvidia" ];
  boot = {
    blacklistedKernelModules = [ "nouveau" ];
    extraModulePackages = [ nvidia_x11 ];
  };

  environment.systemPackages = [ nvidia_x11 ];

  nixpkgs.config.allowUnfree = true;
  services.compton = {
    enable = true;
  };
}