chore: Add DELL XPS 9510

This commit is contained in:
Kourosh Tafreshi 2023-09-28 12:31:15 +03:00 committed by mergify[bot]
parent 93fcc5fb82
commit 455496f1b4
4 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,22 @@
= Dell XPS 15 9510 =
== Tested Hardware ==
* CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
* RAM: 32 GB
* HDD: 1 TiB SSD
* Screen: 15" FHD+ (1920✕1200)
* Graphics: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1), with Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01).
* Input: Trackpad.
== Notes ==
Also tested with Dell WD19S Thunderbolt Dock.
== NVIDIA Offload ==
In order to run a program on the NVIDIA gpu, you can use the `nvidia-offload` function, for example:
```
nvidia-offload `nix-shell -p glxinfo --run 'glxgears'`
```
This is a short bash script that sets the proper environment variables and calls your command.

View file

@ -0,0 +1,18 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# This will save you money and possibly your life!
services.thermald.enable = lib.mkDefault true;
# WiFi speed is slow and crashes by default (https://bugzilla.kernel.org/show_bug.cgi?id=213381)
# disable_11ax - required until ax driver support is fixed
# power_save - works well on this card
boot.extraModprobeConfig = ''
options iwlwifi power_save=1 disable_11ax=1
'';
}

View file

@ -0,0 +1,15 @@
{ lib, ... }:
{
imports = [
../default.nix
../../../../common/gpu/nvidia/prime.nix
];
hardware.nvidia.prime = {
# Bus ID of the Intel GPU.
intelBusId = lib.mkDefault "PCI:0:2:0";
# Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
}

View file

@ -50,6 +50,8 @@
dell-xps-15-7590-nvidia = import ./dell/xps/15-7590/nvidia;
dell-xps-15-9500 = import ./dell/xps/15-9500;
dell-xps-15-9500-nvidia = import ./dell/xps/15-9500/nvidia;
dell-xps-15-9510 = import ./dell/xps/15-9510;
dell-xps-15-9510-nvidia = import ./dell/xps/15-9510/nvidia;
dell-xps-15-9520 = import ./dell/xps/15-9520;
dell-xps-15-9520-nvidia = import ./dell/xps/15-9520/nvidia;
dell-xps-15-9550 = import ./dell/xps/15-9550;