Skip to content

Commit 0cb5491

Browse files
authored
Merge pull request #220 from NixOS/dell-xps-9550-nvidia
Copy NVidia 9500 NVidia settings for 9550
2 parents 3657e7c + a989fd8 commit 0cb5491

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ See code for all available configurations.
8787
| [Dell XPS 13 9380][] | `<nixos-hardware/dell/xps/13-9380>` |
8888
| [Dell XPS 15 7590][] | `<nixos-hardware/dell/xps/15-7590>` |
8989
| [Dell XPS 15 9550][] | `<nixos-hardware/dell/xps/15-9550>` |
90+
| [Dell XPS 15 9550, nvidia][] | `<nixos-hardware/dell/xps/15-9550/nvidia>` |
9091
| [Dell XPS 15 9560][] | `<nixos-hardware/dell/xps/15-9560>` |
9192
| [Dell XPS 15 9560, intel only][] | `<nixos-hardware/dell/xps/15-9560/intel>` |
9293
| [Dell XPS 15 9560, nvidia only][] | `<nixos-hardware/dell/xps/15-9560/nvidia>` |

dell/xps/15-9550/README.wiki

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ Most of this I presume also applies to the XPS 13 1530, the 13" variant.
55
== Tested Hardware ==
66

77
* CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
8-
* RAM: 16 GB
8+
* RAM: 32 GB
99
* HDD: 512 GiB SSD
1010
* Screen: 15" 4k (3840✕2160)
1111
* Graphics: NVIDIA Corporation GM107M, with Intel Graphics too.
1212
* Input: Touchscreen and trackpad.
1313
14+
== NVIDIA Offload ==
15+
16+
In order to run a program on the NVIDIA gpu, you can use the `nvidia-offload` function, for example:
17+
```
18+
nvidia-offload `nix-shell -p glxinfo --run 'glxgears'`
19+
```
20+
This is a short bash script that sets the proper environment variables and calls your command.
1421

1522
== Firmware Configuration ==
1623

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{ lib, pkgs, ... }:
2+
{
3+
imports = [
4+
../default.nix
5+
../../../../common/gpu/nvidia.nix
6+
];
7+
8+
hardware.nvidia.prime = {
9+
# Bus ID of the Intel GPU.
10+
intelBusId = lib.mkDefault "PCI:0:2:0";
11+
12+
# Bus ID of the NVIDIA GPU.
13+
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
14+
};
15+
}

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
dell-xps-13-9380 = import ./dell/xps/13-9380;
2323
dell-xps-15-7590 = import ./dell/xps/15-7590;
2424
dell-xps-15-9550 = import ./dell/xps/15-9550;
25+
dell-xps-15-9550-nvidia = import ./dell/xps/15-9550/nvidia;
2526
dell-xps-15-9560 = import ./dell/xps/15-9560;
2627
dell-xps-15-9560-intel = import ./dell/xps/15-9560/intel;
2728
dell-xps-15-9560-nvidia = import ./dell/xps/15-9560/nvidia;

0 commit comments

Comments
 (0)