summary refs log tree commit diff
path: root/host/Rory-portable/optional/hardware-specific/nvidia.nix
blob: c146c3a1a9460fca4422672b96a6be4a0a89b254 (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
41
42
43
44
{
  config,
  pkgs,
  lib,
  nhekoSrc,
  mtxclientSrc,
  ...
}:

{
  imports = [

  ];

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

  hardware = {
    graphics = {
      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!
}