From 6a3c9878083212c3d1a0a83d75cc4f5bcc8d8f35 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 12 Jul 2023 12:09:52 +0900 Subject: [PATCH] test --- desktops/common.nix | 8 ++++---- hosts/nixos-laptop/configuration.nix | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/desktops/common.nix b/desktops/common.nix index f10ab89a..1788fcb9 100644 --- a/desktops/common.nix +++ b/desktops/common.nix @@ -32,10 +32,10 @@ enable = true; layout = "us"; xkbVariant = ""; - libinput = { - enable = true; - touchpad.tapping = true; - }; + # libinput = { + # enable = true; + # touchpad.tapping = true; + # }; # Enable nVidia drivers videoDrivers = [ "nvidia" ]; diff --git a/hosts/nixos-laptop/configuration.nix b/hosts/nixos-laptop/configuration.nix index 41a492c0..9272834d 100644 --- a/hosts/nixos-laptop/configuration.nix +++ b/hosts/nixos-laptop/configuration.nix @@ -32,7 +32,10 @@ opengl.enable = true; opengl.driSupport32Bit = true; + nvidia.powerManagement.enable = true; + nvidia.prime = { + offload.enable = true; intelBusId = lib.mkDefault "PCI:0:2:0"; nvidiaBusId = lib.mkDefault "PCI:1:0:0"; };