summaryrefslogtreecommitdiffstats
path: root/nin/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-02-27 22:40:24 +0100
committerlassulus <lassulus@lassul.us>2018-02-27 22:40:24 +0100
commit4d3575734880761147783834d6c6098b57dcfb47 (patch)
tree9f18ae64988133f549f548ea8c28ff7e02092acc /nin/2configs
parent8e73dd86b43a8c54a54da2c2c48623897dd95978 (diff)
parent3bed8beabf48574823c2682cd686bf78c728345e (diff)
Merge remote-tracking branch 'onondaga/master'
Diffstat (limited to 'nin/2configs')
-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
+ '')
+ ];
+}