Skip to content

Commit 18e9f97

Browse files
authored
dell-xps-15-9570: fix imports, refactor (closer to recent profiles and more explicit) (#1331)
1 parent 3e2ea8a commit 18e9f97

File tree

5 files changed

+25
-23
lines changed

5 files changed

+25
-23
lines changed

dell/xps/15-9570/default.nix

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{ lib, ... }:
22
{
33
imports = [
4-
../../../common/cpu/intel/kaby-lake
5-
../../../common/pc/laptop
6-
./xps-common.nix
4+
./shared.nix
75
];
8-
9-
# Includes the Wi-Fi and Bluetooth firmware
10-
hardware.enableRedistributableFirmware = lib.mkDefault true;
116
}

dell/xps/15-9570/intel/default.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
imports = [
3-
../../../../common/cpu/intel
4-
../../../../common/pc/laptop
53
../../../../common/gpu/nvidia/disable.nix
6-
../xps-common.nix
4+
../shared.nix
75
];
6+
7+
# Disables the Nvidia GPU, better for battery life
88
}

dell/xps/15-9570/nvidia/default.nix

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{ ... }:
2-
32
{
43
imports = [
5-
../../../../common/cpu/intel
64
../../../../common/gpu/nvidia/prime.nix
75
../../../../common/gpu/nvidia/pascal
8-
../../../../common/pc/laptop
9-
../xps-common.nix
6+
../shared.nix
107
];
118

129

dell/xps/15-9570/shared.nix

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{ lib, ... }:
2+
{
3+
4+
imports = [
5+
../../../common/cpu/intel/coffee-lake
6+
../../../common/pc/laptop
7+
];
8+
9+
# Solution to rcu_sched freezing
10+
boot.kernelParams = [ "acpi_rev_override" ];
11+
12+
# This will save you money and possibly your life!
13+
# https://github.com/NixOS/nixos-hardware/pull/127
14+
services.thermald.enable = lib.mkDefault true;
15+
16+
hardware.graphics = {
17+
enable = lib.mkDefault true;
18+
enable32Bit = lib.mkDefault true;
19+
};
20+
}

dell/xps/15-9570/xps-common.nix

-10
This file was deleted.

0 commit comments

Comments
 (0)