-
-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
「✨」 feat(Dell Precision 5530): Added Nvidia support and some other fe…
…ature (#1254) 「✨」 feat(Dell Precision 5530): Added Nvidia support and some other feature * Update dell/precision/5530/default.nix Co-authored-by: Jörg Thalheim <[email protected]>
- Loading branch information
Showing
1 changed file
with
40 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,47 @@ | ||
{ lib, config, ... }: | ||
|
||
{ | ||
imports = [ | ||
../../../common/cpu/intel | ||
../../../common/pc/laptop | ||
../../../common/pc/laptop/ssd | ||
../../../common/gpu/nvidia/pascal | ||
../../../common/gpu/nvidia/prime.nix | ||
../../../common/cpu/intel/coffee-lake | ||
]; | ||
|
||
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 = { | ||
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" | ||
"nvidia_drm.modeset=1" | ||
]; | ||
}; | ||
|
||
hardware = { | ||
nvidia = { | ||
open = lib.mkDefault false; | ||
nvidiaSettings = lib.mkDefault true; | ||
modesetting.enable = lib.mkDefault true; | ||
package = lib.mkDefault config.boot.kernelPackages.nvidiaPackages.stable; | ||
prime = { | ||
intelBusId = lib.mkDefault "PCI:0:2:0"; | ||
nvidiaBusId = lib.mkDefault "PCI:1:0:0"; | ||
}; | ||
}; | ||
}; | ||
# This will save you money and possibly your life! | ||
services = { | ||
fwupd.enable = lib.mkDefault true; | ||
thermald.enable = lib.mkDefault true; | ||
}; | ||
} |