summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornin <nin@c-base.org>2018-02-27 22:39:08 +0100
committernin <nin@c-base.org>2018-02-27 22:39:08 +0100
commit3bed8beabf48574823c2682cd686bf78c728345e (patch)
treeb702b4ddbcc2d6f6312f327a979ee2de33798e65
parent10ad102e7a2ee4eb3596ade1ca70f5690b7db6fe (diff)
nin im: copy irc script from tv
-rw-r--r--nin/2configs/im.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/nin/2configs/im.nix b/nin/2configs/im.nix
new file mode 100644
index 000000000..b078dbd53
--- /dev/null
+++ b/nin/2configs/im.nix
@@ -0,0 +1,19 @@
+{ config, lib, pkgs, ... }:
+with import <stockholm/lib>;
+{
+ environment.systemPackages = with pkgs; [
+ (pkgs.writeDashBin "im" ''
+ export PATH=${makeSearchPath "bin" (with pkgs; [
+ tmux
+ gnugrep
+ weechat
+ ])}
+ ssh chat@onondaga
+ if tmux list-sessions -F\#S | grep -q '^im''$'; then
+ exec tmux attach -t im
+ else
+ exec tmux new -s im weechat
+ fi
+ '')
+ ];
+}