fix(niri): Revert to using systemd-cat to startup
Changing this to using systemd-run fucks me over and causes niri to
crash (thanks mini, for only changing the ZSH stuff, I know you want me
to switch over to bash but this is going a bit too far...)
Change-Id: Ie33909b4703388263820ca75ec3460756669171b
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/833
Tested-by: Samuel Shuert <coded@clicks.codes>
Reviewed-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/home/wayland/niri/default.nix b/modules/home/wayland/niri/default.nix
index dc53d80..2f089be 100644
--- a/modules/home/wayland/niri/default.nix
+++ b/modules/home/wayland/niri/default.nix
@@ -104,7 +104,7 @@
programs.zsh.profileExtra = lib.mkIf config.chimera.shell.zsh.enable (
lib.mkBefore ''
if [ -z $WAYLAND_DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
- exec ${pkgs.systemd}/bin/systemd-run --user -u niri ${pkgs.dbus}/bin/dbus-run-session ${config.programs.niri.package}/bin/niri --session
+ exec ${pkgs.systemd}/bin/systemd-cat -t niri ${pkgs.dbus}/bin/dbus-run-session ${config.programs.niri.package}/bin/niri --session
fi
''
);