diff --git a/system/desktop.nix b/system/desktop.nix index 54de8b07..217ba546 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -7,8 +7,12 @@ NIXOS_OZONE_WL = "1"; MOZ_ENABLE_WAYLAND = "1"; WEBKIT_DISABLE_COMPOSITING_MODE = "1"; + MPLBACKEND = "TkAgg"; + GDK_BACKEND = "wayland,x11"; XDG_SESSION_TYPE = "wayland"; QT_QPA_PLATFORM = "wayland"; + QT_AUTO_SCREEN_SCALE_FACTOR = "1"; + QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; }; systemPackages = with pkgs; [ libsecret diff --git a/system/home/hyprland.nix b/system/home/hyprland.nix index af62c01c..2e0c400c 100644 --- a/system/home/hyprland.nix +++ b/system/home/hyprland.nix @@ -142,14 +142,6 @@ systemd.enable = true; settings = { monitor = [ ",preferred,auto,auto" ]; - env = [ - "XDG_CURRENT_DESKTOP=Hyprland" - "XDG_SESSION_DESKTOP=Hyprland" - "GDK_BACKEND=wayland,x11" - "QT_AUTO_SCREEN_SCALE_FACTOR,1" - "QT_WAYLAND_DISABLE_WINDOWDECORATION,1" - "GRIM_DEFAULT_DIR,${config.xdg.userDirs.pictures}/Screenshots" - ]; exec-once = [ "systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME" "${config.wayland.windowManager.hyprland.finalPackage}/bin/hyprctl setcursor ${config.gtk.cursorTheme.name} ${toString config.gtk.cursorTheme.size}"