diff options
author | nin <nin@c-base.org> | 2018-02-27 22:39:08 +0100 |
---|---|---|
committer | nin <nin@c-base.org> | 2018-02-27 22:39:08 +0100 |
commit | 3bed8beabf48574823c2682cd686bf78c728345e (patch) | |
tree | b702b4ddbcc2d6f6312f327a979ee2de33798e65 /nin/2configs | |
parent | 10ad102e7a2ee4eb3596ade1ca70f5690b7db6fe (diff) |
nin im: copy irc script from tv
Diffstat (limited to 'nin/2configs')
-rw-r--r-- | nin/2configs/im.nix | 19 |
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 + '') + ]; +} |