fix(niri): Start xwayland-satellite

This commit is contained in:
Madeleine Sydney
2025-04-24 17:26:41 -06:00
parent 84ad360ead
commit e3ed89534a

View File

@@ -30,17 +30,20 @@ in {
["${pkgs.xwayland-satellite}/bin/xwayland-satellite"];
Unit.After = ["niri.service"];
Unit.PartOf = ["niri.service"];
Install.WantedBy = ["niri.service"];
};
programs.niri = {
settings = {
# Activates some Nixpkgs patches to help run Electron applications under
# Wayland.
settings = {
environment."NIXOS_OZONE_WL" = "1";
environment."DISPLAY" = ":0";
spawn-at-startup =
[{ command = [ "${pkgs.swaynotificationcenter}/bin/swaync" ]; }]
[{ command = [ "${pkgs.swaynotificationcenter}/bin/swaync" ]; }
{ command = [ "${pkgs.gammastep}/bin/gammastep" "-o" "-O" "4000k"
"-b" "0.9:0.9" "-l" "0:0"]; }]
++ lib.optional
(! builtins.isNull cfg.wallpaper)
{ command = [ "${pkgs.wbg}/bin/wbg" "${cfg.wallpaper}" ]; };