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.
This commit is contained in:
erictapen 2021-02-12 20:31:44 +01:00 committed by GitHub
parent 02e0538536
commit b2dbb4f50e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -367,6 +367,7 @@ in {
'' else "") + ''
EOF
'';
environment = env;
serviceConfig = {
Type = "oneshot";
User = cfg.user;