fix: prevent offload everything in Hyprland

This commit is contained in:
DACHXY 2025-01-05 16:08:34 +08:00
parent 75a114ddbe
commit c93bc1099c
3 changed files with 3 additions and 13 deletions

View file

@ -15,6 +15,7 @@
WLR_DRM_DEVICES = "/dev/dri/card1";
WLR_NO_HARDWARE_CURSORS = "1";
CLUTTER_BACKEND = "wayland";
EGL_PLATFORM = "wayland";
WLR_RENDERER = "vulkan";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_DESKTOP = "Hyprland";

View file

@ -1,8 +1,8 @@
{ mainMod }:
let
uwsm = "uwsm app --";
browser = "firefox";
terminal = "ghostty";
browser = "offload firefox";
terminal = "offload ghostty";
filemanager = "nemo";
scripts = "~/.config/scripts";

View file

@ -111,15 +111,4 @@ lib.checkListOfEnum "Nvidia Prime Mode" validModes [ nvidia-mode ] {
# make sure to put the iGPU first
AQ_DRM_DEVICES = "/dev/dri/card1:/dev/dri/card0";
};
# NOTE: You need set "env XDG_CURRENT_DESKTOP, Hyprland" in hyprland config
# Otherwise you got XDG_CURRENT_DESKTOP="offload:Hyprland" which may cause problems
# Change display manager session file
programs.uwsm.waylandCompositors = lib.mkForce {
hyprland = {
prettyName = "Hyprland";
comment = "Hyprland compositor managed by UWSM";
binPath = "${offload}/bin/offload /run/current-system/sw/bin/Hyprland";
};
};
}