lemmyCfg should return a file
This commit is contained in:
parent
bcc09e9f3e
commit
2cd9bdc3ac
|
@ -92,7 +92,8 @@ let
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
lemmyCfg = { hostname, postgresPasswd, pictrsApiKey, smtpServer, ... }: {
|
lemmyCfg = { hostname, postgresPasswd, pictrsApiKey, smtpServer, ... }:
|
||||||
|
pkgs.writeText "lemmy.hjson" (builtins.toJSON {
|
||||||
database = {
|
database = {
|
||||||
host = "postgres";
|
host = "postgres";
|
||||||
password = postgresPasswd;
|
password = postgresPasswd;
|
||||||
|
@ -107,7 +108,7 @@ let
|
||||||
tls_type = "none";
|
tls_type = "none";
|
||||||
smtp_from_address = "noreply@${hostname}";
|
smtp_from_address = "noreply@${hostname}";
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
|
|
||||||
lemmyDockerComposeCfg = { hostname, port, lemmyCfgFile, nginxCfgFile
|
lemmyDockerComposeCfg = { hostname, port, lemmyCfgFile, nginxCfgFile
|
||||||
, pictrsApiKey, stateDirectory, postgresPasswd, lemmyDockerImage
|
, pictrsApiKey, stateDirectory, postgresPasswd, lemmyDockerImage
|
||||||
|
|
Loading…
Reference in New Issue