diff --git a/flake.nix b/flake.nix index cafbc77..ba055c7 100644 --- a/flake.nix +++ b/flake.nix @@ -375,6 +375,14 @@ { Unit = { Description = "sims status bar"; + # Start as part of the graphical session rather than at + # user-manager boot. The compositor populates the systemd + # user environment (WAYLAND_DISPLAY, NIXOS_OZONE_WL, ...) + # via `import-environment` before it activates + # graphical-session.target, so binding here guarantees sims + # — and every app it launches via `systemd-run --scope` — + # inherits the correct Wayland environment. + PartOf = [ "graphical-session.target" ]; After = [ "graphical-session.target" ]; }; @@ -384,7 +392,7 @@ }; Install = { - WantedBy = [ "default.target" ]; + WantedBy = [ "graphical-session.target" ]; }; }; };