toString value for env file
This commit is contained in:
parent
6c97aaaee9
commit
48d0ae68f7
|
@ -7,7 +7,9 @@ let
|
||||||
hostSecrets = config.fudo.secrets.host-secrets."${config.instance.hostname}";
|
hostSecrets = config.fudo.secrets.host-secrets."${config.instance.hostname}";
|
||||||
|
|
||||||
makeEnvFile = envVars:
|
makeEnvFile = envVars:
|
||||||
let envLines = mapAttrsToList (var: val: ''${var}="${val}"'') envVars;
|
let
|
||||||
|
envLines =
|
||||||
|
mapAttrsToList (var: val: ''${var}="${toString val}"'') envVars;
|
||||||
in pkgs.writeText "envFile" (concatStringsSep "\n" envLines);
|
in pkgs.writeText "envFile" (concatStringsSep "\n" envLines);
|
||||||
|
|
||||||
makeLemmyImage = { port, stateDirectory, proxyCfg, lemmyCfg, lemmyUiCfg
|
makeLemmyImage = { port, stateDirectory, proxyCfg, lemmyCfg, lemmyUiCfg
|
||||||
|
|
Loading…
Reference in New Issue