From ede7de10a0a37ba00c39ad4b2e2acb581df7965d Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 4 Oct 2025 11:25:00 -0400 Subject: [PATCH] bump --- clients/quadraticserver/matrix/draupnir.nix | 41 ++++++++++++--------- flake.lock | 14 +++---- 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/clients/quadraticserver/matrix/draupnir.nix b/clients/quadraticserver/matrix/draupnir.nix index 316f0e3..4ab020f 100644 --- a/clients/quadraticserver/matrix/draupnir.nix +++ b/clients/quadraticserver/matrix/draupnir.nix @@ -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; }; } diff --git a/flake.lock b/flake.lock index 516ec80..2b85c20 100644 --- a/flake.lock +++ b/flake.lock @@ -1042,11 +1042,11 @@ ] }, "locked": { - "lastModified": 1759337100, - "narHash": "sha256-CcT3QvZ74NGfM+lSOILcCEeU+SnqXRvl1XCRHenZ0Us=", + "lastModified": 1759573136, + "narHash": "sha256-ILSPD0Dm8p0w0fCVzOx98ZH8yFDrR75GmwmH3fS2VnE=", "owner": "nix-community", "repo": "home-manager", - "rev": "004753ae6b04c4b18aa07192c1106800aaacf6c3", + "rev": "5f06ceafc6c9b773a776b9195c3f47bbe1defa43", "type": "github" }, "original": { @@ -1490,11 +1490,11 @@ ] }, "locked": { - "lastModified": 1759512612, - "narHash": "sha256-7X1Une4h7MDaf4SIdNHagASQFeXjo27pW1OPAW6K4AE=", + "lastModified": 1759591064, + "narHash": "sha256-Bd/liiNYhDuEyeZ1r5ljUWVYOM2lo9/ZOUUte9z0yf4=", "ref": "refs/heads/main", - "rev": "ad9d2ebb82675e8d0a455a37709251ac25459d4d", - "revCount": 26, + "rev": "94ba4801a9211f7f43bd2533d93ae71de6e321d4", + "revCount": 27, "type": "git", "url": "https://git.federated.nexus/federated-nexus/nexusbot" },