From 38154bbd0d08b49852237707833e6dfd0302e34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Thu, 26 Feb 2026 18:13:52 +0100 Subject: [PATCH] Added back code. --- modules/services/lib.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/services/lib.nix b/modules/services/lib.nix index 6997f1a..b1273f6 100644 --- a/modules/services/lib.nix +++ b/modules/services/lib.nix @@ -28,7 +28,8 @@ with lib; let cfg = config.numbus.services.${name}; 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 {