about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-03-01 21:48:54 +0100
committersternenseemann <sternenseemann@systemli.org>2022-03-01 21:48:54 +0100
commit80d4f99504a1b4c0b0ea7e39f3a5cffce4445580 (patch)
tree79ace58c10aa1e3ef7e10ee1f545b216de59820e
parent4d4b98cd0e6d1d0046807178dbbf14bdfed21c25 (diff)
modules/sternenseemann/sway: wrap sway in systemd-cat
This will make sway's output get sent to the journal which is useful
when tracking down problems (as the console is cleared immediately when
sway exits).
-rw-r--r--modules/user/sternenseemann/services/sway.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/user/sternenseemann/services/sway.nix b/modules/user/sternenseemann/services/sway.nix
index 5313b585..85dd1657 100644
--- a/modules/user/sternenseemann/services/sway.nix
+++ b/modules/user/sternenseemann/services/sway.nix
@@ -12,6 +12,7 @@ let
       // (getBins pkgs.dbus [
         "dbus-update-activation-environment"
       ])
+      // (getBins pkgs.systemd [ "systemd-cat" ])
       // (getBins cfg.package [ "sway" ])
       // (getBins pkgs.i3status [ "i3status" ])
       // (getBins pkgs.brightnessctl [ "brightnessctl" ])
@@ -127,7 +128,7 @@ in {
     programs.fish.loginShellInit = lib.mkIf cfg.autolaunchFish ''
       if test -z "$DISPLAY"; and test -z "$WAYLAND_DISPLAY"; and test (tty) = "/dev/tty1"
         set -x SWAYSOCK "/run/user/"(id -u)"/sway.sock"
-        exec ${bins.sway}
+        exec ${bins.systemd-cat} ${bins.sway}
       end
     '';