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

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