toString value for env file

This commit is contained in:
niten 2023-07-18 11:27:17 -07:00
parent 6c97aaaee9
commit 48d0ae68f7
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,9 @@ let
hostSecrets = config.fudo.secrets.host-secrets."${config.instance.hostname}";
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);
makeLemmyImage = { port, stateDirectory, proxyCfg, lemmyCfg, lemmyUiCfg