forked from NixOS/nixos-hardware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
28 lines (26 loc) · 858 Bytes
/
default.nix
File metadata and controls
28 lines (26 loc) · 858 Bytes
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
{ lib, config, ... }:
{
imports = [
../../../../../../common/gpu/nvidia/pascal
../../../../../../common/gpu/nvidia/prime-sync.nix
../.
];
hardware = {
graphics = {
enable = lib.mkDefault true;
enable32Bit = lib.mkDefault true;
};
nvidia = {
powerManagement.enable = lib.mkDefault true;
modesetting.enable = lib.mkDefault true;
dynamicBoost.enable = lib.mkForce false; # Dynamic boost is not supported on Pascal architeture
prime = {
# 00:02.0 VGA compatible controller: Intel Corporation CometLake-U GT2 [UHD Graphics] (rev 02)
intelBusId = lib.mkDefault "PCI:0:2:0";
# 2d:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX330] (rev a1)
nvidiaBusId = lib.mkDefault "PCI:45:0:0";
};
};
};
services.thermald.enable = lib.mkDefault true;
}