239a31abd0
This reverts commit 62314e64c2
.
20 lines
429 B
Nix
20 lines
429 B
Nix
{ 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
|
|
'')
|
|
];
|
|
}
|