Commit 9824c80456f8

Vincent Demeester <vincent@sbr.pm>
2025-11-24 11:36:19
fix(dns): Use correct 'preference' field for MX records
Changed MX record field from 'priority' to 'preference' to match the NixOS DNS module's expected schema. The old field name was causing a Nix evaluation error: error: The option `zones."sbr.pm".MX."[definition 1-entry 1]".priority' does not exist. The correct field name for MX records is 'preference', not 'priority'. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 72bb9db
Changed files (1)
systems
common
services
systems/common/services/dns/sbr.pm.nix
@@ -52,11 +52,11 @@ in
   # Email (Gandi)
   MX = [
     {
-      priority = 10;
+      preference = 10;
       exchange = "spool.mail.gandi.net.";
     }
     {
-      priority = 50;
+      preference = 50;
       exchange = "fb.mail.gandi.net.";
     }
   ];