diff options
author | lassulus <lass@aidsballs.de> | 2016-02-18 17:07:49 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-02-18 17:07:49 +0100 |
commit | 0f225385758ebb156d49d05f03fe76c15023e200 (patch) | |
tree | 80a66df538e3c25f37cba726ef27669bbefdc18e /tv/2configs/im.nix | |
parent | e1a77d240eaedafbb58a387da94c863118533574 (diff) | |
parent | ffc47bf80d521635021b3f7a0122092708ebd2bf (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'tv/2configs/im.nix')
-rw-r--r-- | tv/2configs/im.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tv/2configs/im.nix b/tv/2configs/im.nix new file mode 100644 index 000000000..db1be7f0b --- /dev/null +++ b/tv/2configs/im.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: +with config.krebs.lib; +{ + environment.systemPackages = with pkgs; [ + (pkgs.writeDashBin "im" '' + 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 + '') + ]; + services.bitlbee = { + enable = true; + plugins = [ + pkgs.bitlbee-facebook + ]; + }; +} |