1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 03:19:42 +01:00

」 feat(Dell Precision 5530): Added Nvidia support and some other feature (#1254)

」 feat(Dell Precision 5530): Added Nvidia support and some other feature

* Update dell/precision/5530/default.nix

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
Mic92 2024-11-18 22:51:12 +00:00
parent 672ac2ac86
commit 76f143abd7

View file

@ -1,22 +1,47 @@
{ lib, config, ... }:
{ {
imports = [ imports = [
../../../common/cpu/intel
../../../common/pc/laptop ../../../common/pc/laptop
../../../common/pc/laptop/ssd ../../../common/pc/laptop/ssd
../../../common/gpu/nvidia/pascal
../../../common/gpu/nvidia/prime.nix
../../../common/cpu/intel/coffee-lake
]; ];
boot.kernelParams = [ boot = {
# fix lspci hanging with nouveau kernelParams = [
# source https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803179/comments/149 # fix lspci hanging with nouveau
"acpi_rev_override=1" # source https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803179/comments/149
"acpi_osi=Linux" "acpi_rev_override=1"
"nouveau.modeset=0" "acpi_osi=Linux"
"pcie_aspm=force" "nouveau.modeset=0"
"drm.vblankoffdelay=1" "pcie_aspm=force"
"nouveau.runpm=0" "drm.vblankoffdelay=1"
"mem_sleep_default=deep" "nouveau.runpm=0"
# fix flicker "mem_sleep_default=deep"
# source https://wiki.archlinux.org/index.php/Intel_graphics#Screen_flickering # fix flicker
"i915.enable_psr=0" # 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;
};
} }