summary refs log tree commit diff
path: root/host/Rory-portable/optional/hardware-specific/nvidia.nix
blob: 7278d842cbcbf96e833cf479a607837153921118 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ config, pkgs, lib, nhekoSrc, mtxclientSrc, ... }:

{
  imports =
    [
     
    ];


  services = {
    xserver = {
      videoDrivers = ["nvidia"];
      #windowManager.i3.extraSessionCommands = ''
        # todo: restore
      #'';
    };
    picom.backend = "glx";
  };

  hardware = {
    opengl = {
      enable = true;
      driSupport = true;
      driSupport32Bit = true;
    };

    nvidia = {
      modesetting.enable = true;
      powerManagement.enable = false;
      powerManagement.finegrained = false;
      open = true;
      nvidiaSettings = true;
      nvidiaPersistenced = true;
      package = config.boot.kernelPackages.nvidiaPackages.stable;
    };
  };

  system.stateVersion = "22.11"; # DO NOT EDIT!
}