From 23947993b74ae83e4f4042a77b14a67f5a5e52e0 Mon Sep 17 00:00:00 2001 From: nin Date: Tue, 27 Feb 2018 22:39:08 +0100 Subject: nin im: copy irc script from tv --- nin/2configs/im.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nin/2configs/im.nix (limited to 'nin/2configs') diff --git a/nin/2configs/im.nix b/nin/2configs/im.nix new file mode 100644 index 0000000..b078dbd --- /dev/null +++ b/nin/2configs/im.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: +with import ; +{ + 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 + '') + ]; +} -- cgit v1.2.3