Added back code.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user