add draupnir

This commit is contained in:
Henry Hiles 2025-10-03 15:42:11 -04:00
commit f0cbd4c036
No known key found for this signature in database
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ config, ... }:
{
services.draupnir = {
enable = true;
settings = rec {
homeserverUrl = config.services.matrix-continuwuity.settings.global.well_known.client;
rawHomeserverUrl = homeserverUrl;
managementRoom = "#moderators:${config.services.matrix-continuwuity.settings.global.server_name}";
autojoinOnlyIfManager = false;
protectAllJoinedRooms = true;
roomStateBackingStore.enabled = false;
commands = {
allowNoPrefix = true;
symbolPrefixes = [ "/" ];
ban.defaultReasons = [
"spam"
"advertising"
"harassment"
"troll"
];
};
};
secrets.accessToken = config.age.secrets."draupnir.age".path;
};
}