fix: niri - add support for xwayland

This commit is contained in:
Ryan Yin
2025-08-20 20:11:48 +08:00
parent 41d521e6f5
commit 0a27530c11
2 changed files with 10 additions and 0 deletions

View File

@@ -37,6 +37,10 @@ in
config = lib.mkIf cfg.enable (
lib.mkMerge [
{
home.packages = with pkgs; [
xwayland-satellite
];
programs.niri.config = cfg.settings;
# NOTE: this executable is used by greetd to start a wayland session when system boot up

View File

@@ -272,5 +272,11 @@ niri: {
# (leaf "spring" { damping-ratio=0.6; stiffness=1000; epsilon=0.001; })
])
])
# xwayland
(leaf "spawn-at-startup" "xwayland-satellite")
(plain "environment" [
(leaf "DISPLAY" ":0")
])
];
}