Nix modules: fix environment variables

This commit is contained in:
Narice 2022-10-13 23:01:26 +02:00 committed by Mihai Fufezan
parent 724fa4a7d4
commit 7e7cb40909
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ in {
++ lib.optional cfg.xwayland.enable pkgs.xwayland; ++ lib.optional cfg.xwayland.enable pkgs.xwayland;
home.sessionVariables = lib.mkIf cfg.recommendedEnvironment { home.sessionVariables = lib.mkIf cfg.recommendedEnvironment {
GDK_BACKEND = "wayland"; GDK_BACKEND = "wayland,x11";
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
XCURSOR_SIZE = toString config.home.pointerCursor.size or "24"; XCURSOR_SIZE = toString config.home.pointerCursor.size or "24";

View file

@ -47,7 +47,7 @@ in {
systemPackages = lib.optional (cfg.package != null) cfg.package; systemPackages = lib.optional (cfg.package != null) cfg.package;
sessionVariables = mkIf cfg.recommendedEnvironment { sessionVariables = mkIf cfg.recommendedEnvironment {
GDK_BACKEND = "wayland"; GDK_BACKEND = "wayland,x11";
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
XCURSOR_SIZE = "24"; XCURSOR_SIZE = "24";