@@ -248,14 +248,11 @@ in
248248 RuntimeDirectory = "dendrite";
249249 RuntimeDirectoryMode = "0700";
250250 EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile;
251− ExecStartPre =
252− if (cfg.environmentFile != null) then ''
253− ${pkgs.envsubst}/bin/envsubst \
254− -i ${configurationYaml} \
255− -o /run/dendrite/dendrite.yaml
256− '' else ''
257− ${pkgs.coreutils}/bin/cp ${configurationYaml} /run/dendrite/dendrite.yaml
258− '';
251+ ExecStartPre = ''
252+ ${pkgs.envsubst}/bin/envsubst \
253+ -i ${configurationYaml} \
254+ -o /run/dendrite/dendrite.yaml
255+ '';
259256 ExecStart = lib.strings.concatStringsSep " " ([
260257 "${pkgs.dendrite}/bin/dendrite-monolith-server"
261258 "--config /run/dendrite/dendrite.yaml"