Starting to break out for different XPS systems

This commit is contained in:
2025-10-10 22:30:51 -05:00
parent 3166ad5b32
commit 1e291f4366
37 changed files with 898 additions and 1041 deletions

33
system/programs.nix Normal file
View File

@@ -0,0 +1,33 @@
{ 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;
}