feat(hypr): run on nvidia alone!

This commit is contained in:
Malte Tammena 2023-09-04 10:32:00 +02:00
parent b000585104
commit fa021cc190
2 changed files with 12 additions and 2 deletions

View file

@ -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";
};

View file

@ -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/