mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-25 02:11:02 +01:00
613: Add config for Dell XPS 15 9520 r=Mic92 a=palfrey 615: add dell precision 3541 r=Mic92 a=anstylian Co-authored-by: Tom Parker-Shemilt <tom.parkershemilt@doxy.me> Co-authored-by: Tom Parker-Shemilt <palfrey@tevp.net> Co-authored-by: angelos <agathangelos.stylianidis@gmail.com>
This commit is contained in:
commit
7dc4630467
7 changed files with 98 additions and 0 deletions
28
dell/precision/3541/default.nix
Normal file
28
dell/precision/3541/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./intel
|
||||
];
|
||||
|
||||
# Boot loader
|
||||
boot.kernelParams = [
|
||||
# fix lspci hanging with nouveau
|
||||
# source https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803179/comments/149
|
||||
"acpi_rev_override=1"
|
||||
"acpi_osi=Linux"
|
||||
"nouveau.modeset=0"
|
||||
"pcie_aspm=force"
|
||||
"drm.vblankoffdelay=1"
|
||||
"nouveau.runpm=0"
|
||||
"mem_sleep_default=deep"
|
||||
# fix flicker
|
||||
# source https://wiki.archlinux.org/index.php/Intel_graphics#Screen_flickering
|
||||
"i915.enable_psr=0"
|
||||
];
|
||||
|
||||
boot.kernelModules = lib.mkDefault [ "kvm-intel" ];
|
||||
|
||||
# Recommended in NixOS/nixos-hardware#127
|
||||
services.thermald.enable = lib.mkDefault true;
|
||||
}
|
||||
9
dell/precision/3541/intel/default.nix
Normal file
9
dell/precision/3541/intel/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../../../common/cpu/intel
|
||||
../../../../common/pc/laptop
|
||||
../../../../common/gpu/nvidia/disable.nix
|
||||
];
|
||||
}
|
||||
22
dell/xps/15-9520/README.wiki
Normal file
22
dell/xps/15-9520/README.wiki
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
= Dell XPS 15 9520 =
|
||||
|
||||
== Tested Hardware ==
|
||||
|
||||
* CPU: Intel(R) Core(TM) i7-12700H CPU
|
||||
* RAM: 32 GB
|
||||
* HDD: 1 TiB SSD
|
||||
* Screen: 15" 4k (3840✕2160)
|
||||
* Graphics: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile], with Intel Graphics too.
|
||||
* Input: Touchscreen and trackpad.
|
||||
|
||||
== Notes ==
|
||||
|
||||
Also tested with Dell WD19TB 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
dell/xps/15-9520/default.nix
Normal file
18
dell/xps/15-9520/default.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
15
dell/xps/15-9520/nvidia/default.nix
Normal file
15
dell/xps/15-9520/nvidia/default.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue