From 96698fe69d195c6b3439213dedae175a43592d1c Mon Sep 17 00:00:00 2001 From: wo2wz <189177184+wo2wz@users.noreply.github.com> Date: Sun, 26 Oct 2025 14:22:56 -0400 Subject: [PATCH] Swordsmachine: add gpu disable specialization --- hosts/Swordsmachine/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/Swordsmachine/default.nix b/hosts/Swordsmachine/default.nix index 25ad9a3..ba4f82d 100755 --- a/hosts/Swordsmachine/default.nix +++ b/hosts/Swordsmachine/default.nix @@ -19,6 +19,10 @@ inputs.nixos-hardware.nixosModules.dell-xps-15-9570-nvidia ]; + # boot option to disable the dgpu for power saving + # also the longest one-line option name in this config + specialisation.disable-dgpu.configuration.hardware.nvidiaOptimus.disable = true; + # pin the latest nvidia driver that works because they are so awesome in releasing an update that broke opengl for my 1050ti hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.mkDriver { version = "570.144";