summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/weechat.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/weechat.nix b/config/weechat.nix
index e15cd33..6e33f3a 100644
--- a/config/weechat.nix
+++ b/config/weechat.nix
@@ -10,10 +10,13 @@
Type = "oneshot";
User = "orbekk";
RemainAfterExit = true;
+ Environment = "TMUX_TMPDIR=/run/user/1000";
};
+
script = ''
tmux -2 new-session -d -s irc "${pkgs.weechat}/bin/weechat"
'';
+
preStop = ''
# Gently shut down weechat.
# -xf is needed to kill precisely weechat (and not this script).