summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/draupnir.nix
blob: 19a2f167e467205918b401afa2c8b22df02019ef (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ config, pkgs, lib, ... }:

{
  imports =
    [
      ../../modules/base-server.nix
    ];

  # Alicia - doesnt work yet... until in nixpkgs...
  services.draupnir = {
    enable = true;
    
    pantalaimon = {
      enable = true;
      username = "draupnir";
      passwordFile = "/etc/draupnir-password";
      options = {
        homeserver = "http://localhost:8008";
        ssl = false;
      };
      
    };
    managementRoom = "#draupnir-mgmt:rory.gay";
    homeserverUrl = "http://localhost:8008";
    verboseLogging = false;
    settings = {
      recordIgnoredInvites = false;
      automaticallyRedactForReasons = [ "*" ];
      fasterMembershipChecks = true;
      backgroundDelayMS = 100;
      pollReports = true;
      admin.enableMakeRoomAdminCommand = true;
      commands.ban.defaultReasons = [
        "spam"
        "harassment"
        "transphobia"
        "scam"
      ];
      protections = {
        wordlist = {
          words = [
            "tranny"
            "faggot"
          ];
          minutesBeforeTrusting = 0;
        };
      };
    };
  };

  system.stateVersion = "22.11"; # DO NOT EDIT!
}