Commit fed23325baa2

Vincent Demeester <vincent@sbr.pm>
2026-05-06 09:19:35
fix(niri): fix systemd niri user service
With the "forced update" to 26.04, I broke that service.. fixing it. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent ead6ff7
Changed files (1)
systems
common
desktop
systems/common/desktop/niri.nix
@@ -35,6 +35,21 @@
 
   programs.niri.enable = true;
 
+  # Fix: upstream niri.service uses bare "niri" which systemd can't resolve.
+  # Override with full store path.
+  systemd.user.services.niri = {
+    serviceConfig.ExecStart = [
+      "" # clear the upstream ExecStart
+      "${pkgs.niri}/bin/niri --session"
+    ];
+    # Ensure spawn-at-startup can find user-profile binaries (waybar, mako, etc.)
+    # The upstream service sets a minimal PATH that excludes user profiles.
+    path = [
+      "/etc/profiles/per-user/vincent"
+      "/run/current-system/sw"
+    ];
+  };
+
   # Expose wayland-sessions to greetd so ReGreet can discover niri-session
   systemd.services.greetd.environment.XDG_DATA_DIRS =
     "${config.services.displayManager.sessionData.desktops}/share";