mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 06:04:33 +00:00
Add default environment variables for wayland
This commit is contained in:
parent
61ada8f1cf
commit
c4a14d4543
|
@ -4,5 +4,6 @@
|
|||
./xdg-portals.nix
|
||||
./xwayland.nix
|
||||
./services.nix
|
||||
./environment.nix
|
||||
];
|
||||
}
|
||||
|
|
22
system/roles/workstation/display/wayland/environment.nix
Normal file
22
system/roles/workstation/display/wayland/environment.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
cfgEnabled = config.myOptions.home-manager.wms.isWayland;
|
||||
in {
|
||||
config = mkIf cfgEnabled {
|
||||
environment.sessionVariables = {
|
||||
_JAVA_AWT_WM_NONEREPARENTING = "1";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
GDK_BACKEND = "wayland,x11";
|
||||
ANKI_WAYLAND = "1";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
CLUTTER_BACKEND = "wayland";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue