From fa021cc190506f35ff65616fb28023bbff2802e8 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Mon, 4 Sep 2023 10:32:00 +0200 Subject: [PATCH] feat(hypr): run on nvidia alone! --- hardware/thinkpad-p1-gen3.nix | 4 +++- users/malte/hypr.nix | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hardware/thinkpad-p1-gen3.nix b/hardware/thinkpad-p1-gen3.nix index 09bf447..cebeea7 100644 --- a/hardware/thinkpad-p1-gen3.nix +++ b/hardware/thinkpad-p1-gen3.nix @@ -43,9 +43,11 @@ bluetooth.enable = true; nvidia.modesetting.enable = true; + # nvidia.dynamicBoost.enable = true; + nvidia.nvidiaSettings = true; nvidia.powerManagement.enable = true; nvidia.prime = { - offload.enable = false; + offload.enable = true; nvidiaBusId = "PCI:1:0:0"; intelBusId = "PCI:0:2:0"; }; diff --git a/users/malte/hypr.nix b/users/malte/hypr.nix index 7fcca5e..f58fa92 100644 --- a/users/malte/hypr.nix +++ b/users/malte/hypr.nix @@ -77,6 +77,14 @@ }; hyprlandConfig = '' + ${ + if nixosConfig.settings.nvidiaUsed + then '' + # Prevent cursor from disappering under nvidia :') + env = WLR_NO_HARDWARE_CURSORS,1 + '' + else "" + } # See https://wiki.hyprland.org/Configuring/Monitors/ ${ if nixosConfig.networking.hostName == "helix-texta" @@ -95,7 +103,7 @@ exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once=${pkgs.waybar-hypr}/bin/waybar - exec-once=hyprpaper + exec-once=${pkgs.hyprpaper}/bin/hyprpaper exec-once=${runWob}/bin/run-wob # For all categories, see https://wiki.hyprland.org/Configuring/Variables/