From e3ed89534a68c6fde954d3a794f96b482a8f063f Mon Sep 17 00:00:00 2001 From: Madeleine Sydney Date: Thu, 24 Apr 2025 17:26:41 -0600 Subject: [PATCH] fix(niri): Start xwayland-satellite --- modules/home/users/crumb/niri.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/home/users/crumb/niri.nix b/modules/home/users/crumb/niri.nix index 9dad186..24593ee 100644 --- a/modules/home/users/crumb/niri.nix +++ b/modules/home/users/crumb/niri.nix @@ -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 = { - # Activates some Nixpkgs patches to help run Electron applications under - # Wayland. settings = { + # Activates some Nixpkgs patches to help run Electron applications under + # Wayland. 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}" ]; };