Fix attempt

This commit is contained in:
soraefir
2026-05-06 23:35:03 +02:00
parent 27a5566ac6
commit 3caf507905

View File

@@ -1,10 +1,11 @@
{ config, lib, serverCfg }:
{ image, secret ? ""
, subdomain ? "", ip ? "", port ? 0
, extraEnv ? { }, extraLabels ? { }
, overrides ? { }
}:
let base = {
let builder =
{ image, secret ? ""
, subdomain ? "", ip ? "", port ? 0
, extraEnv ? { }, extraLabels ? { }
, overrides ? { }
}:
let base = {
inherit image;
environmentFiles = if secret !="" then [ config.sops.secrets."${lib.toUpper secret}".path ] else [];
@@ -24,5 +25,6 @@ let base = {
extraOptions = [
"--add-host=host.containers.internal:host-gateway"
] ++ lib.optional (ip != "") "--ip=${ip}";
};
in lib.recursiveUpdate base overrides // { host = "host.containers.internal"; }
};
in lib.recursiveUpdate base overrides;
in builder // { host = "host.containers.internal"; }