Added back code.

This commit is contained in:
Raphaël Numbus
2026-02-26 18:13:52 +01:00
parent 16c1517d95
commit 38154bbd0d
+2 -1
View File
@@ -28,7 +28,8 @@ with lib;
let let
cfg = config.numbus.services.${name}; cfg = config.numbus.services.${name};
hasSecrets = (generatedSecrets != {}) || (importedSecrets != {}); hasSecrets = (generatedSecrets != {}) || (importedSecrets != {});
envFileArg = if hasSecrets != null then "/var/lib/numbus-server/${name}/.env" else ""; envFilePath = if envFile == null then "/var/lib/numbus-server/${name}/.env" else envFile;
envFileArg = if hasSecrets || envFile != null then "--env-file ${envFilePath}" else "";
in in
{ {