aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix
diff options
context:
space:
mode:
authorNarice <[email protected]>2022-11-19 20:37:16 +0100
committerGitHub <[email protected]>2022-11-19 19:37:16 +0000
commitc03e4c36b0796e5ab49768e28183a4aecb257bb5 (patch)
treed73857243a30b1a0d74ecd1a6464573b84afcbc6 /nix
parent5530cf6e7939365ef6197a50c59bed20a64e3e11 (diff)
downloadHyprland-c03e4c36b0796e5ab49768e28183a4aecb257bb5.tar.gz
Hyprland-c03e4c36b0796e5ab49768e28183a4aecb257bb5.zip
Setting wayland environment variables at startup (#1045)
* Nix modules: removed GDK_BACKEND env variable * setting wayland environment variables at startup setting XDG_BACKEND and _JAVA_AWT_WM_NONREPARENTING in main.cpp removed these variables from nix modules recommended environemnt removed XCURSOR_SIZE from nix modules as it is already set * Making _JAVA_AWT_WM_NONREPARENTING not overwritten
Diffstat (limited to 'nix')
-rw-r--r--nix/hm-module.nix4
-rw-r--r--nix/module.nix4
2 files changed, 0 insertions, 8 deletions
diff --git a/nix/hm-module.nix b/nix/hm-module.nix
index d8ac2be2..ac149985 100644
--- a/nix/hm-module.nix
+++ b/nix/hm-module.nix
@@ -92,11 +92,7 @@ in {
++ lib.optional cfg.xwayland.enable pkgs.xwayland;
home.sessionVariables = lib.mkIf cfg.recommendedEnvironment {
- GDK_BACKEND = "wayland,x11";
- _JAVA_AWT_WM_NONREPARENTING = "1";
NIXOS_OZONE_WL = "1";
- XCURSOR_SIZE = toString config.home.pointerCursor.size or "24";
- XDG_SESSION_TYPE = "wayland";
};
xdg.configFile."hypr/hyprland.conf" = {
diff --git a/nix/module.nix b/nix/module.nix
index a4e85d69..8d822b0c 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -47,11 +47,7 @@ in {
systemPackages = lib.optional (cfg.package != null) cfg.package;
sessionVariables = mkIf cfg.recommendedEnvironment {
- GDK_BACKEND = "wayland,x11";
- _JAVA_AWT_WM_NONREPARENTING = "1";
NIXOS_OZONE_WL = "1";
- XCURSOR_SIZE = "24";
- XDG_SESSION_TYPE = "wayland";
};
};
fonts.enableDefaultFonts = mkDefault true;