Use uwsm to set desktop variables, not hyprland
This commit is contained in:
parent
5dac54a9d9
commit
f5345af026
|
@ -1,31 +1,31 @@
|
||||||
{
|
{lib, ...}: let
|
||||||
lib,
|
variables = {
|
||||||
config,
|
NIXOS_OZONE_WL = 1;
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.sessionVariables = {
|
|
||||||
NIXOS_OZONE_WL = "1";
|
|
||||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||||
__GL_GSYNC_ALLOWED = "0";
|
__GL_GSYNC_ALLOWED = 0;
|
||||||
__GL_VRR_ALLOWED = "0";
|
__GL_VRR_ALLOWED = 0;
|
||||||
_JAVA_AWT_WM_NONEREPARENTING = "1";
|
_JAVA_AWT_WM_NONEREPARENTING = 1;
|
||||||
DISABLE_QT5_COMPAT = "0";
|
DISABLE_QT5_COMPAT = 0;
|
||||||
GDK_BACKEND = "wayland";
|
GDK_BACKEND = "wayland,x11,*";
|
||||||
ANKI_WAYLAND = "1";
|
ANKI_WAYLAND = 1;
|
||||||
DIRENV_LOG_FORMAT = "";
|
DIRENV_LOG_FORMAT = "";
|
||||||
WLR_DRM_NO_ATOMIC = "1";
|
WLR_DRM_NO_ATOMIC = 1;
|
||||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
QT_AUTO_SCREEN_SCALE_FACTOR = 1;
|
||||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = 1;
|
||||||
QT_QPA_PLATFORM = "wayland";
|
QT_QPA_PLATFORM = "wayland;xcb";
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
MOZ_ENABLE_WAYLAND = 1;
|
||||||
MOZ_USE_XINPUT2 = "1";
|
MOZ_USE_XINPUT2 = 1;
|
||||||
WLR_BACKEND = "vulkan";
|
WLR_BACKEND = "vulkan";
|
||||||
WLR_NO_HARDWARE_CURSORS = "1";
|
|
||||||
XDG_SESSION_TYPE = "wayland";
|
|
||||||
SDL_VIDEODRIVER = "wayland";
|
SDL_VIDEODRIVER = "wayland";
|
||||||
CLUTTER_BACKEND = "wayland";
|
CLUTTER_BACKEND = "wayland";
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
home.sessionVariables = variables;
|
||||||
|
|
||||||
wayland.windowManager.hyprland.systemd.variables = ["--all"];
|
xdg.configFile."uwsm/env".text = builtins.concatStringsSep "\n" (
|
||||||
wayland.windowManager.hyprland.settings.env = lib.attrsets.mapAttrsToList (name: value: "${name},${builtins.toString value}") config.home.sessionVariables;
|
lib.attrsets.mapAttrsToList (
|
||||||
|
name: value: "export ${name}=\"${builtins.toString value}\""
|
||||||
|
)
|
||||||
|
variables
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue