summaryrefslogtreecommitdiffstats
path: root/1systems/tv/wu.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-07-26 14:17:39 +0200
committertv <tv@shackspace.de>2015-07-26 14:17:39 +0200
commitcea33984057136ea0deac369650e490f420b5445 (patch)
treea9a596081878d3117e625b9ce164c82339e35812 /1systems/tv/wu.nix
parentf811bc0144b7268031a960d85e0dfee35d5e8fed (diff)
1 tv wu: systemPackages += im -= weechat
Diffstat (limited to '1systems/tv/wu.nix')
-rw-r--r--1systems/tv/wu.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/1systems/tv/wu.nix b/1systems/tv/wu.nix
index f542581ba..192b65b9d 100644
--- a/1systems/tv/wu.nix
+++ b/1systems/tv/wu.nix
@@ -35,6 +35,19 @@ in
exec ${pkgs.firefoxWrapper}/bin/firefox $(printf " %q" "$@")
EOF
'')
+ (pkgs.writeScriptBin "im" ''
+ #! ${pkgs.bash}/bin/bash
+ export PATH=${makeSearchPath "bin" (with pkgs; [
+ tmux
+ gnugrep
+ weechat
+ ])}
+ if tmux list-sessions -F\#S | grep -q '^im''$'; then
+ exec tmux attach -t im
+ else
+ exec tmux new -s im weechat
+ fi
+ '')
# root
cryptsetup
@@ -62,7 +75,6 @@ in
sxiv
texLive
tmux
- weechat
zathura
Zpkgs.dic