From cf3e3aabfd05930caf8bb7277f0a618de789a478 Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 18 Jan 2024 10:24:27 -0800 Subject: [PATCH] Make env files available inside the container --- mastodon-container.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mastodon-container.nix b/mastodon-container.nix index 40db12a..e0e18f0 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -93,7 +93,8 @@ in { "postgres-data:/var/lib/postgres/data" "redis-data:/var/lib/redis" "mastodon-data:/var/lib/mastodon" - ]; + ] ++ (map (env-file: "${env-file}:${env-file},ro") + cfg.environment-files); ports = [ "${toString cfg.port}:80" ]; }; nixos = {