From d19d3b9330b02fa3b09252027769cffc72d6bd2f Mon Sep 17 00:00:00 2001 From: osbm Date: Sun, 30 Nov 2025 22:53:12 +0300 Subject: [PATCH] add xwayland --- modules/nixos/system/desktop-environment.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/nixos/system/desktop-environment.nix b/modules/nixos/system/desktop-environment.nix index 618613b..3410afc 100644 --- a/modules/nixos/system/desktop-environment.nix +++ b/modules/nixos/system/desktop-environment.nix @@ -92,6 +92,24 @@ in fuzzel swww ]; + + + # XWayland satellite service for X11 app support + systemd.user.services.xwayland-satellite = { + Unit = { + Description = "Xwayland outside Wayland"; + BindsTo = "graphical-session.target"; + After = "graphical-session.target"; + }; + Service = { + Type = "notify"; + NotifyAccess = "all"; + ExecStart = "${pkgs.xwayland-satellite}/bin/xwayland-satellite"; + StandardOutput = "journal"; + Restart = "on-failure"; + }; + Install.WantedBy = [ "graphical-session.target" ]; + }; }) # Hyprland desktop environment