From 76f143abd7258b1fe098ec066464b5c8c7385329 Mon Sep 17 00:00:00 2001 From: Mic92 <96200+Mic92@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:51:12 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=E2=9C=A8=E3=80=8D=20feat(Dell=20Preci?= =?UTF-8?q?sion=205530):=20Added=20Nvidia=20support=20and=20some=20other?= =?UTF-8?q?=20feature=20(#1254)=20=E3=80=8C=E2=9C=A8=E3=80=8D=20feat(Dell?= =?UTF-8?q?=20Precision=205530):=20Added=20Nvidia=20support=20and=20some?= =?UTF-8?q?=20other=20feature?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update dell/precision/5530/default.nix Co-authored-by: Jörg Thalheim --- dell/precision/5530/default.nix | 55 ++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/dell/precision/5530/default.nix b/dell/precision/5530/default.nix index 24071f0..6f270c2 100644 --- a/dell/precision/5530/default.nix +++ b/dell/precision/5530/default.nix @@ -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; + }; }