From b2dbb4f50e314c1ec9cc135177ba465d295a83a4 Mon Sep 17 00:00:00 2001 From: erictapen Date: Fri, 12 Feb 2021 20:31:44 +0100 Subject: [PATCH] nixos/mastodon: set environment for mastodon-init-dirs (#112917) mastodon-init-dirs should have the same environment as the other services, as it also calls rake. Especially RAILS_ENV was missing. --- nixos/modules/services/web-apps/mastodon.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix index 47da8b9867a..92b1be963bf 100644 --- a/nixos/modules/services/web-apps/mastodon.nix +++ b/nixos/modules/services/web-apps/mastodon.nix @@ -367,6 +367,7 @@ in { '' else "") + '' EOF ''; + environment = env; serviceConfig = { Type = "oneshot"; User = cfg.user;