25 lines
497 B
Nix
25 lines
497 B
Nix
|
{ 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
|
||
|
];
|
||
|
};
|
||
|
}
|