summaryrefslogtreecommitdiff
path: root/config/weechat.nix
diff options
context:
space:
mode:
authorKJ Ørbekk <kj@orbekk.com>2017-05-15 22:52:36 -0400
committerKJ Ørbekk <kj@orbekk.com>2017-05-15 22:52:36 -0400
commit58436c6567243b710dff0d17ae37845b4d7fab15 (patch)
tree33f59edcc1e8f63fea1d4a112fdded65007ff233 /config/weechat.nix
parent9f53d13ac583548427669a94b77f17ea701521f7 (diff)
weechat: Fix tmux socket issue
Diffstat (limited to 'config/weechat.nix')
-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).