about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/by-name/an/anubis/module.nix4
-rw-r--r--modules/by-name/ma/matrix/module.nix10
2 files changed, 10 insertions, 4 deletions
diff --git a/modules/by-name/an/anubis/module.nix b/modules/by-name/an/anubis/module.nix
index e30a0a0..4e70e4f 100644
--- a/modules/by-name/an/anubis/module.nix
+++ b/modules/by-name/an/anubis/module.nix
@@ -69,6 +69,10 @@ in {
       groups.anubis.gid = config.vhack.constants.ids.gids.anubis;
     };
 
+    vhack.nginx = lib.mkIf (cfg.instances != {}) {
+      enable = true;
+    };
+
     services = {
       anubis = {
         defaultOptions.settings.COOKIE_DYNAMIC_DOMAIN = true;
diff --git a/modules/by-name/ma/matrix/module.nix b/modules/by-name/ma/matrix/module.nix
index ae3f04e..39631ef 100644
--- a/modules/by-name/ma/matrix/module.nix
+++ b/modules/by-name/ma/matrix/module.nix
@@ -62,10 +62,12 @@ in {
       tmpfiles.rules = [
         "d /etc/matrix 0755 matrix-synapse matrix-synapse"
       ];
-      services.postgresql.postStart = ''
-        $PSQL -tAc "ALTER ROLE \"matrix-synapse\" WITH PASSWORD 'synapse';"
-        $PSQL -tAc "ALTER ROLE \"mautrix-whatsapp\" WITH PASSWORD 'whatsapp';"
-      '';
+      # TODO: Do we still need this? <2025-12-18>
+      # The `$PSQL` env var seemed to go away between the 25.05 -> 25.11 update
+      # services.postgresql.postStart = ''
+      #   $PSQL -tAc "ALTER ROLE \"matrix-synapse\" WITH PASSWORD 'synapse';"
+      #   $PSQL -tAc "ALTER ROLE \"mautrix-whatsapp\" WITH PASSWORD 'whatsapp';"
+      # '';
     };
 
     services = {