From 65be421f5326b2ca7073622fb3d9ec3297731df6 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Thu, 27 Jun 2024 13:31:38 +0200 Subject: [PATCH] pro-laptop: Add iGPU (Test triple-buffering on plasma 6.1) --- hosts/pro-laptop/configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/pro-laptop/configuration.nix b/hosts/pro-laptop/configuration.nix index 14ec850..1aa1333 100644 --- a/hosts/pro-laptop/configuration.nix +++ b/hosts/pro-laptop/configuration.nix @@ -19,6 +19,19 @@ networking.hostName = "nixos-laptop-pro"; # Define your hostname. + hardware.nvidia.prime = { + offload = { + enable = true; + enableOffloadCmd = true; + }; + + # Make sure to use the correct Bus ID values for your system! + # information bus: pci@0000:00:02.0 + intelBusId = "PCI:0:2:0"; + # information bus: pci@0000:01:00.0 + nvidiaBusId = "PCI:1:0:0"; + }; + modules.system = { desktop = { plasma.enable = true;