diff --git a/nixos/modules/services/misc/matrix-synapse.xml b/nixos/modules/services/misc/matrix-synapse.xml
index 358b631eb485..41a56df0f2b5 100644
--- a/nixos/modules/services/misc/matrix-synapse.xml
+++ b/nixos/modules/services/misc/matrix-synapse.xml
@@ -33,11 +33,11 @@
installation instructions of Synapse .
-{ pkgs, ... }:
+{ pkgs, lib, ... }:
let
fqdn =
let
- join = hostName: domain: hostName + optionalString (domain != null) ".${domain}";
+ join = hostName: domain: hostName + lib.optionalString (domain != null) ".${domain}";
in join config.networking.hostName config.networking.domain;
in {
networking = {
@@ -132,7 +132,7 @@ in {
}
];
};
-};
+}