34 lines
825 B
Nix
34 lines
825 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# Enable Sway at system level (required for SDDM to detect it)
|
|
programs.sway = {
|
|
enable = true;
|
|
wrapperFeatures.gtk = true;
|
|
};
|
|
|
|
# Enable Xwayland for compatibility
|
|
programs.xwayland.enable = true;
|
|
|
|
# Environment variables for Wayland
|
|
environment.variables = {
|
|
XDG_SESSION_TYPE = "wayland";
|
|
XDG_CURRENT_DESKTOP = "sway";
|
|
QT_QPA_PLATFORM = "wayland";
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
# Additional Wayland environment variables
|
|
GDK_BACKEND = "wayland,x11";
|
|
CLUTTER_BACKEND = "wayland";
|
|
};
|
|
|
|
# Ensure Wayland sessions are properly registered
|
|
environment.sessionVariables = {
|
|
XDG_SESSION_TYPE = "wayland";
|
|
XDG_CURRENT_DESKTOP = "sway";
|
|
};
|
|
|
|
# Enable other useful programs
|
|
programs.light.enable = true;
|
|
}
|