Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add DELL XPS 9510 #742

Merged
merged 3 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ See code for all available configurations.
| [Dell XPS 15 7590](dell/xps/15-7590) | `<nixos-hardware/dell/xps/15-7590>` |
| [Dell XPS 15 9500, nvidia](dell/xps/15-9500/nvidia) | `<nixos-hardware/dell/xps/15-9500/nvidia>` |
| [Dell XPS 15 9500](dell/xps/15-9500) | `<nixos-hardware/dell/xps/15-9500>` |
| [Dell XPS 15 9510, nvidia](dell/xps/15-9510/nvidia) | `<nixos-hardware/dell/xps/15-9510/nvidia>` |
| [Dell XPS 15 9510](dell/xps/15-9510) | `<nixos-hardware/dell/xps/15-9510>` |
| [Dell XPS 15 9520, nvidia](dell/xps/15-9520/nvidia) | `<nixos-hardware/dell/xps/15-9520/nvidia>` |
| [Dell XPS 15 9520](dell/xps/15-9520) | `<nixos-hardware/dell/xps/15-9520>` |
| [Dell XPS 15 9550, nvidia](dell/xps/15-9550/nvidia) | `<nixos-hardware/dell/xps/15-9550/nvidia>` |
Expand Down
22 changes: 22 additions & 0 deletions dell/xps/15-9510/README.wiki
Original file line number Diff line number Diff line change
@@ -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.
18 changes: 18 additions & 0 deletions dell/xps/15-9510/default.nix
Original file line number Diff line number Diff line change
@@ -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
'';
}
15 changes: 15 additions & 0 deletions dell/xps/15-9510/nvidia/default.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
ktaf marked this conversation as resolved.
Show resolved Hide resolved
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;
Expand Down