Don't change the password on every build...

This commit is contained in:
niten 2023-08-01 17:19:49 -07:00
parent b939506879
commit 34f12633a1
1 changed files with 3 additions and 2 deletions

View File

@ -275,8 +275,9 @@ in {
};
config = mkIf cfg.enable (let
postgresPasswd =
readFile (pkgs.lib.passwd.random-passwd-file "lemmy-postgres-passwd" 30);
postgresPasswd = readFile
(pkgs.lib.passwd.stablerandom-passwd-file "lemmy-postgres-passwd"
config.instance.build-seed);
pictrsApiKey =
readFile (pkgs.lib.passwd.random-passwd-file "lemmy-pictrs-api-key" 30);
adminPasswd = readFile