Wayland : Add extra compat variables thanks to Fox.

This commit is contained in:
Dmitry Voronin 2024-05-21 00:58:49 +03:00
parent 62577482a3
commit bb7550d338
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
4 changed files with 34 additions and 15 deletions

View file

@ -16,15 +16,19 @@ in {
];
services.gnome.gnome-keyring.enable = lib.mkForce false;
environment.systemPackages = with pkgs; [
environment = {
systemPackages = with pkgs; [
grim slurp # Screenshot.
mako # Notification system.
networkmanagerapplet # Internet configuration.
pamixer pavucontrol pulseaudio # Audio.
playerctl # Multimedia controls.
script
script # My custom Sway shell scripts.
];
variables.XDG_CURRENT_DESKTOP = "sway";
};
programs.sway = {
enable = true;
wrapperFeatures = {

View file

@ -62,6 +62,9 @@ in {
# Proton.
WINEFSYNC = "1";
# GTK apps compat.
GTK_CSD = 0;
};
};

View file

@ -1,5 +1,20 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
wl-clipboard
environment = {
systemPackages = with pkgs; [
wl-clipboard # CLI clipboard support.
];
variables = {
# Compatibility variables.
ECORE_EVAS_ENGINE = "wayland_egl";
ELM_ENGINE = "wayland_egl";
GDK_BACKEND = "wayland";
MOZ_ENABLE_WAYLAND = "1";
QT_QPA_PLATFORM = "wayland-egl";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
SAL_USE_VCLPLUGIN = "gtk3";
SDL_VIDEODRIVER = "wayland";
_JAVA_AWT_WM_NONREPARENTING = "1";
};
};
}

View file

@ -9,10 +9,7 @@
mkBookmark = name: url: { inherit name url; };
in {
# Disable profile switching on rebuild.
environment.variables = {
MOZ_LEGACY_PROFILES = "1";
MOZ_ENABLE_WAYLAND = "1";
};
environment.variables.MOZ_LEGACY_PROFILES = "1";
programs.firefox = {
enable = true;