fix envfile

This commit is contained in:
soraefir
2026-05-10 21:43:48 +02:00
parent 8165bf6935
commit f67e142f53

View File

@@ -57,7 +57,7 @@ in
serviceConfig = {
Type = "oneshot";
TimeoutStartSec = "360s";
EnvironmentFile = lib.mkIf (containerSet.setup.envFile != null) containerSet.setup.envFile;
EnvironmentFile = if (containerSet.setup ? envFile) then containerSet.setup.envFile else [ ];
ExecStart = "${containerSet.setup.script}";
RemainAfterExit = true;
User = "root";