diff --git a/hosts/tsuki/services/matrix/bridges/matrix-appservice-irc.nix b/hosts/tsuki/services/matrix/bridges/matrix-appservice-irc.nix
index f06ade7..bc554c7 100644
--- a/hosts/tsuki/services/matrix/bridges/matrix-appservice-irc.nix
+++ b/hosts/tsuki/services/matrix/bridges/matrix-appservice-irc.nix
@@ -63,7 +63,7 @@ in {
       database = {
         engine = "postgres";
         # TODO: use unix socket
-        connectionString = "postgres://matrix-appservice-irc:@localhost:${toString config.services.postgresql.port}/matrix-appservice-irc?sslmode=disable";
+        connectionString = "postgres://matrix-appservice-irc:@localhost:${toString config.services.postgresql.settings.port}/matrix-appservice-irc?sslmode=disable";
       };
 
       ircService = {