Skip to content

Commit 05ee993

Browse files
committed
Add Dell Precision 5520 (based on 5530)
1 parent 009b764 commit 05ee993

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

dell/precision/5520/default.nix

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{ lib, config, ... }:
2+
3+
{
4+
imports = [
5+
../../../common/pc/laptop
6+
../../../common/pc/laptop/ssd
7+
../../../common/gpu/nvidia/maxwell
8+
../../../common/gpu/nvidia/prime.nix
9+
../../../common/cpu/intel/kaby-lake
10+
];
11+
12+
boot = {
13+
kernelParams = [
14+
# fix lspci hanging with nouveau
15+
# source https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803179/comments/149
16+
"acpi_rev_override=1"
17+
"acpi_osi=Linux"
18+
"nouveau.modeset=0"
19+
"pcie_aspm=force"
20+
"drm.vblankoffdelay=1"
21+
"nouveau.runpm=0"
22+
"mem_sleep_default=deep"
23+
# fix flicker
24+
# source https://wiki.archlinux.org/index.php/Intel_graphics#Screen_flickering
25+
"i915.enable_psr=0"
26+
"nvidia_drm.modeset=1"
27+
];
28+
};
29+
30+
hardware = {
31+
nvidia = {
32+
open = lib.mkDefault false;
33+
nvidiaSettings = lib.mkDefault true;
34+
modesetting.enable = lib.mkDefault true;
35+
package = lib.mkDefault config.boot.kernelPackages.nvidiaPackages.stable;
36+
prime = {
37+
intelBusId = lib.mkDefault "PCI:0:2:0";
38+
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
39+
};
40+
};
41+
};
42+
# This will save you money and possibly your life!
43+
services = {
44+
fwupd.enable = lib.mkDefault true;
45+
thermald.enable = lib.mkDefault true;
46+
};
47+
}

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
dell-poweredge-r7515 = import ./dell/poweredge/r7515;
8282
dell-precision-3541 = import ./dell/precision/3541;
8383
dell-precision-5490 = import ./dell/precision/5490;
84+
dell-precision-5520 = import ./dell/precision/5520;
8485
dell-precision-5530 = import ./dell/precision/5530;
8586
dell-precision-5560 = import ./dell/precision/5560;
8687
dell-precision-7520 = import ./dell/precision/7520;

0 commit comments

Comments
 (0)