mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-15 09:57:17 +00:00
23 lines
469 B
Nix
23 lines
469 B
Nix
|
{
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
}
|