summaryrefslogtreecommitdiffstats
path: root/lass/2configs/bitlbee.nix
blob: 84f06e587790de273a88a4c800314482debb4d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 = [
      # pkgs.telegram-purple
      # pkgs.tdlib-purple
      # pkgs.purple-gowhatsapp
    ];
  };

  users.users.bitlbee = {
    uid = genid_uint31 "bitlbee";
    isSystemUser = true;
    group = "bitlbee";
  };
  users.groups.bitlbee = {};

  systemd.services.bitlbee.serviceConfig = {
    DynamicUser = lib.mkForce false;
    User = "bitlbee";
    StateDirectory = lib.mkForce null;
  };
}