diff options
| author | jeschli <jeschli@gmail.com> | 2018-02-28 20:22:08 +0000 |
|---|---|---|
| committer | jeschli <jeschli@gmail.com> | 2018-02-28 20:22:08 +0000 |
| commit | a8e30e2c3bb58372d26714e82c7986f22f2be652 (patch) | |
| tree | 30cb2689c69f38d73a5980ff7588b1e71257ee1c /nin/2configs/im.nix | |
| parent | e9ab05ec113f45fd746d255ffded43b23c9363e4 (diff) | |
| parent | e00bacc232833cd39bdde33ef01f2189224929ad (diff) | |
Merge branch 'staging/jeschli' of prism.i:stockholm into staging/jeschli
Diffstat (limited to 'nin/2configs/im.nix')
| -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 0000000..b078dbd --- /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 + '') + ]; +} |
