stockholm/lass/2configs/bitlbee.nix

35 lines
733 B
Nix
Raw Normal View History

2018-05-21 06:25:53 +00:00
with (import <stockholm/lib>);
{ config, lib, pkgs, ... }:
{
services.bitlbee = {
enable = true;
portNumber = 6666;
plugins = [
pkgs.bitlbee-facebook
pkgs.bitlbee-steam
pkgs.bitlbee-discord
];
libpurple_plugins = [
2022-05-29 17:53:56 +00:00
# pkgs.telegram-purple
2021-12-01 15:44:42 +00:00
# pkgs.tdlib-purple
# pkgs.purple-gowhatsapp
];
2023-09-03 10:01:41 +00:00
configDir = "/var/state/bitlbee";
2018-05-21 06:25:53 +00:00
};
2021-12-01 15:44:42 +00:00
systemd.services.bitlbee.serviceConfig = {
2023-09-03 10:01:41 +00:00
ExecStartPre = [
"+${pkgs.writeDash "setup-bitlbee" ''
${pkgs.coreutils}/bin/chown bitlbee:bitlbee /var/state/bitlbee || :
''}"
];
ReadWritePaths = [
"/var/state/bitlbee"
];
2021-12-01 15:44:42 +00:00
};
2023-09-03 10:01:41 +00:00
systemd.tmpfiles.rules = [
"d /var/state/bitlbee 0700 - - -"
];
2018-05-21 06:25:53 +00:00
}