move environment variables to desktop module

This commit is contained in:
Kabbone 2022-10-01 15:03:01 +02:00
parent a1fcb93507
commit eaf24b080a
2 changed files with 13 additions and 14 deletions

View File

@ -74,21 +74,7 @@
TERMINAL = "alacritty";
EDITOR = "nvim";
VISUAL = "nvim";
MOZ_ENABLE_WAYLAND = "1";
MOZ_WEBRENDER = "1";
MOZ_USE_XINPUT2 = "2";
MOZ_DBUS_REMOTE = "1";
GDK_BACKEND = "wayland";
LIBVA_DRIVER_NAME = "iHD";
VDPAU_DRIVER = "iHD";
XDG_SESSION_TYPE = "wayland";
XDG_CURRENT_DESKTOP = "sway";
QT_QPA_PLATFORMTHEME = "qt5ct";
GST_VAAPI_ALL_DRIVERS = "1";
BROWSER = "firefox";
GTK_THEME = "Arc";
_JAVA_AWT_WM_NONREPARENTING = "1";
};
systemPackages = with pkgs; [ # Default packages install system-wide
vim

View File

@ -33,6 +33,19 @@
fi
''; # Will automatically open sway when logged into tty1
variables = {
MOZ_ENABLE_WAYLAND = "1";
MOZ_WEBRENDER = "1";
MOZ_USE_XINPUT2 = "2";
MOZ_DBUS_REMOTE = "1";
GDK_BACKEND = "wayland";
LIBVA_DRIVER_NAME = "iHD";
VDPAU_DRIVER = "iHD";
XDG_SESSION_TYPE = "wayland";
XDG_CURRENT_DESKTOP = "sway";
QT_QPA_PLATFORMTHEME = "qt5ct";
GST_VAAPI_ALL_DRIVERS = "1";
GTK_THEME = "Arc";
_JAVA_AWT_WM_NONREPARENTING = "1";
#LIBCL_ALWAYS_SOFTWARE = "1"; # For applications in VM like alacritty to work
#WLR_NO_HARDWARE_CURSORS = "1"; # For cursor in VM
};