From e5c44d3bd8159dd536c5ed4648fc64f9c5e3f3bf Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 26 Jul 2023 16:50:22 -0700 Subject: [PATCH] Fix host secrets (add src/target) --- mastodon-container.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mastodon-container.nix b/mastodon-container.nix index 9cdda57..d92b544 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -217,9 +217,18 @@ in { SMTP_PORT = toString cfg.smtp.port; SMTP_FROM_ADDRESS = "noreply@${cfg.web-domain}"; }; + target-file = "/run/mastodon/common.env"; + }; + postgresEnv = { + source-file = makeEnvFile { + DB_HOST = "/var/run/postgresql"; + target-file = "/run/mastodon/postgres.env"; + }; + }; + mastodonEnv = { + source-file = makeEnvFile { DB_HOST = "postgres"; }; + target-file = "/run/mastodon/mastodon.env"; }; - postgresEnv = makeEnvFile { DB_HOST = "/var/run/postgresql"; }; - mastodonEnv = makeEnvFile { DB_HOST = "postgres"; }; }; systemd.tmpfiles.rules = [