nixos/services/matrix-synapse: fix eval errors in manual example

This commit is contained in:
sternenseemann 2021-04-16 18:13:25 +02:00
parent 1ebf76d659
commit ecfd3d4c53

View File

@ -33,11 +33,11 @@
<link xlink:href="https://github.com/matrix-org/synapse#synapse-installation">
installation instructions of Synapse </link>.
<programlisting>
{ 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 {
}
];
};
};
}
</programlisting>
</para>