diff --git a/mail-server.nix b/mail-server.nix
index 544ae40..d98475f 100644
--- a/mail-server.nix
+++ b/mail-server.nix
@@ -41,6 +41,12 @@ in {
       default = [ ];
     };
 
+    metricsPort = mkOption {
+      type = port;
+      description = "Port on which to serve metrics.";
+      default = metricsPort;
+    };
+
     ldap = {
       authentik-host = mkOption {
         type = str;
@@ -75,12 +81,6 @@ in {
         description = "Organizational unit containing users.";
         default = "ou=members";
       };
-
-      metricsPort = mkOption {
-        type = port;
-        description = "Port on which to serve metrics.";
-        default = 5457;
-      };
     };
 
     images.ldap-proxy = mkOption {