This commit is contained in:
Henry Hiles 2025-10-04 11:25:00 -04:00
commit ede7de10a0
No known key found for this signature in database
2 changed files with 30 additions and 25 deletions

View file

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