From 34f12633a1fdeb0fa970f76fd1e64d9bcec1c587 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 1 Aug 2023 17:19:49 -0700 Subject: [PATCH] Don't change the password on every build... --- lemmy-docker.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lemmy-docker.nix b/lemmy-docker.nix index 2247438..2228272 100644 --- a/lemmy-docker.nix +++ b/lemmy-docker.nix @@ -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