Fix attempt
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{ config, lib, serverCfg }:
|
{ config, lib, serverCfg }:
|
||||||
|
let builder =
|
||||||
{ image, secret ? ""
|
{ image, secret ? ""
|
||||||
, subdomain ? "", ip ? "", port ? 0
|
, subdomain ? "", ip ? "", port ? 0
|
||||||
, extraEnv ? { }, extraLabels ? { }
|
, extraEnv ? { }, extraLabels ? { }
|
||||||
@@ -25,4 +26,5 @@ let base = {
|
|||||||
"--add-host=host.containers.internal:host-gateway"
|
"--add-host=host.containers.internal:host-gateway"
|
||||||
] ++ lib.optional (ip != "") "--ip=${ip}";
|
] ++ 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"; }
|
||||||
Reference in New Issue
Block a user