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;
};
}

8
secrets/draupnir.age Normal file
View file

@ -0,0 +1,8 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IFZLUVVkUSBhMGxO
UkNzTFFRcDlJaXZvNTBUSjhjWTkyK01IWE9LbCtCUkljNlZHd1NBCnhySTFxdEgw
Vmo1dXhTN0ZJcVc2c2FmaGIrME05YnJVVlVsc2NZUVpYQ2cKLT4gei1ncmVhc2Ug
fGozICFscCBfL1F7VAp6UzQKLS0tIFdDSXMxV0I5TzFIRDdyekp5Y3g4Q0F3RnFz
cDJkK2xPYlBIY2FkY0xnVnMKYHxOe5Ys0EkCyBxrSw9//P+ADkd0RPiObUHTbup7
1uCgdrHZwQInfnzdyMVmQ5ZllMlT6jIyKyf0ST9tSoIA/jw=
-----END AGE ENCRYPTED FILE-----