mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-09 01:16:52 +00:00
Revert "nixos/hyprland: Set environment variables for Hyprland to work better"
This reverts commit d18a587b78
.
This commit is contained in:
parent
4da0f532ba
commit
23bde0b9e3
@ -42,15 +42,6 @@ in
|
|||||||
|
|
||||||
xwayland.enable = mkEnableOption ("XWayland") // { default = true; };
|
xwayland.enable = mkEnableOption ("XWayland") // { default = true; };
|
||||||
|
|
||||||
envVars.enable = mkEnableOption null // {
|
|
||||||
default = true;
|
|
||||||
example = false;
|
|
||||||
description = ''
|
|
||||||
Set environment variables for Hyprland to work properly.
|
|
||||||
Enabled by default.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.setPath.enable = mkEnableOption null // {
|
systemd.setPath.enable = mkEnableOption null // {
|
||||||
default = true;
|
default = true;
|
||||||
example = false;
|
example = false;
|
||||||
@ -83,15 +74,6 @@ in
|
|||||||
configPackages = mkDefault [ cfg.finalPackage ];
|
configPackages = mkDefault [ cfg.finalPackage ];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.sessionVariables = mkIf cfg.envVars.enable {
|
|
||||||
XDG_CURRENT_DESKTOP = "Hyprland";
|
|
||||||
XDG_SESSION_DESKTOP = "Hyprland";
|
|
||||||
XDG_SESSION_TYPE = "wayland";
|
|
||||||
GDK_BACKEND = "wayland,x11";
|
|
||||||
QT_QPA_PLATFORM = "wayland;xcb";
|
|
||||||
_JAVA_AWT_WM_NONREPARENTING = "1"; # Fix for Java applications on tiling window managers
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd = mkIf cfg.systemd.setPath.enable {
|
systemd = mkIf cfg.systemd.setPath.enable {
|
||||||
user.extraConfig = ''
|
user.extraConfig = ''
|
||||||
DefaultEnvironment="PATH=$PATH:/run/current-system/sw/bin:/etc/profiles/per-user/%u/bin:/run/wrappers/bin"
|
DefaultEnvironment="PATH=$PATH:/run/current-system/sw/bin:/etc/profiles/per-user/%u/bin:/run/wrappers/bin"
|
||||||
|
Loading…
Reference in New Issue
Block a user