Skip to content

Commit 860d7cf

Browse files
bubuntuxMic92
authored andcommitted
Add Dell Precision 5680 profile
Adds hardware profile for Dell Precision 5680 with: - Intel CPU with KVM support - NVIDIA GPU with PRIME configuration - Intel IPU6 webcam support - Thunderbolt support - Thermal management
1 parent c8b6a49 commit 860d7cf

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ See code for all available configurations.
164164
| [Dell Precision 5530](dell/precision/5530) | `<nixos-hardware/dell/precision/5530>` | `dell-precision-5530` |
165165
| [Dell Precision 5560](dell/precision/5560) | `<nixos-hardware/dell/precision/5560>` | `dell-precision-5560` |
166166
| [Dell Precision 5570](dell/precision/5570) | `<nixos-hardware/dell/precision/5570>` | `dell-precision-5570` |
167+
| [Dell Precision 5680](dell/precision/5680) | `<nixos-hardware/dell/precision/5680>` | `dell-precision-5680` |
167168
| [Dell Precision 7520](dell/precision/7520) | `<nixos-hardware/dell/precision/7520>` | `dell-precision-7520` |
168169
| [Dell XPS 13 7390](dell/xps/13-7390) | `<nixos-hardware/dell/xps/13-7390>` | `dell-xps-13-7390` |
169170
| [Dell XPS 13 9300](dell/xps/13-9300) | `<nixos-hardware/dell/xps/13-9300>` | `dell-xps-13-9300` |

dell/precision/5680/default.nix

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
lib,
3+
...
4+
}:
5+
{
6+
imports = [
7+
../../../common/pc/laptop
8+
../../../common/pc/ssd
9+
../../../common/cpu/intel
10+
../../../common/gpu/nvidia/prime.nix
11+
];
12+
13+
boot = {
14+
kernelModules = [ "kvm-intel" ];
15+
initrd.availableKernelModules = [
16+
"xhci_pci"
17+
"ahci"
18+
"thunderbolt"
19+
"nvme"
20+
"usb_storage"
21+
"sd_mod"
22+
"rtsx_pci_sdmmc"
23+
];
24+
};
25+
26+
hardware = {
27+
# Audio
28+
enableRedistributableFirmware = lib.mkDefault true;
29+
30+
# Webcam
31+
ipu6 = {
32+
enable = lib.mkDefault true;
33+
platform = lib.mkDefault "ipu6ep";
34+
};
35+
36+
bluetooth = {
37+
enable = lib.mkDefault true;
38+
powerOnBoot = lib.mkDefault true;
39+
};
40+
41+
graphics = {
42+
enable = lib.mkDefault true;
43+
enable32Bit = lib.mkDefault true;
44+
};
45+
46+
intel-gpu-tools.enable = lib.mkDefault true;
47+
intelgpu = {
48+
driver = lib.mkDefault "xe";
49+
};
50+
51+
nvidia = {
52+
modesetting.enable = lib.mkDefault true;
53+
nvidiaSettings = lib.mkDefault true;
54+
open = lib.mkDefault false;
55+
56+
powerManagement = {
57+
enable = lib.mkDefault true;
58+
finegrained = lib.mkDefault true;
59+
};
60+
61+
prime = {
62+
intelBusId = lib.mkDefault "PCI:00:02:0";
63+
nvidiaBusId = lib.mkDefault "PCI:01:00:0";
64+
};
65+
};
66+
};
67+
68+
services = {
69+
fwupd.enable = lib.mkDefault true; # update firmware
70+
hardware.bolt.enable = lib.mkDefault true; # use thunderbolt
71+
thermald.enable = lib.mkDefault true; # cpu temp management
72+
};
73+
}

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
dell-precision-5530 = import ./dell/precision/5530;
9797
dell-precision-5560 = import ./dell/precision/5560;
9898
dell-precision-5570 = import ./dell/precision/5570;
99+
dell-precision-5680 = import ./dell/precision/5680;
99100
dell-precision-7520 = import ./dell/precision/7520;
100101
dell-xps-13-7390 = import ./dell/xps/13-7390;
101102
dell-xps-13-9300 = import ./dell/xps/13-9300;

0 commit comments

Comments
 (0)