summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLin Yinfeng <lin.yinfeng@outlook.com>2022-12-06 23:00:16 +0800
committerKerstin <kerstin@erictapen.name>2022-12-07 15:07:17 +0100
commit56099e008e974a87bd1855372336fd3373db029b (patch)
tree0e35d1aa89623c2cf0b9d8f624974ce1b8dc22a3
parentacb964a35c044a65a3fa215afc3b890a47fc0d39 (diff)
nixos/mastodon: allow appending other env files to serviceConfig.EnvironmentFile
-rw-r--r--nixos/modules/services/web-apps/mastodon.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix
index 8122c2449491..35b96734be77 100644
--- a/nixos/modules/services/web-apps/mastodon.nix
+++ b/nixos/modules/services/web-apps/mastodon.nix
@@ -546,7 +546,7 @@ in {
environment = env;
serviceConfig = {
Type = "oneshot";
- EnvironmentFile = "/var/lib/mastodon/.secrets_env";
+ EnvironmentFile = [ "/var/lib/mastodon/.secrets_env" ];
WorkingDirectory = cfg.package;
# System Call Filtering
SystemCallFilter = [ ("~" + lib.concatStringsSep " " (systemCallsList ++ [ "@resources" ])) "@chown" "pipe" "pipe2" ];
@@ -574,7 +574,7 @@ in {
ExecStart = "${cfg.package}/run-streaming.sh";
Restart = "always";
RestartSec = 20;
- EnvironmentFile = "/var/lib/mastodon/.secrets_env";
+ EnvironmentFile = [ "/var/lib/mastodon/.secrets_env" ];
WorkingDirectory = cfg.package;
# Runtime directory and mode
RuntimeDirectory = "mastodon-streaming";
@@ -601,7 +601,7 @@ in {
ExecStart = "${cfg.package}/bin/puma -C config/puma.rb";
Restart = "always";
RestartSec = 20;
- EnvironmentFile = "/var/lib/mastodon/.secrets_env";
+ EnvironmentFile = [ "/var/lib/mastodon/.secrets_env" ];
WorkingDirectory = cfg.package;
# Runtime directory and mode
RuntimeDirectory = "mastodon-web";
@@ -629,7 +629,7 @@ in {
ExecStart = "${cfg.package}/bin/sidekiq -c ${toString cfg.sidekiqThreads} -r ${cfg.package}";
Restart = "always";
RestartSec = 20;
- EnvironmentFile = "/var/lib/mastodon/.secrets_env";
+ EnvironmentFile = [ "/var/lib/mastodon/.secrets_env" ];
WorkingDirectory = cfg.package;
# System Call Filtering
SystemCallFilter = [ ("~" + lib.concatStringsSep " " systemCallsList) "@chown" "pipe" "pipe2" ];
@@ -642,7 +642,7 @@ in {
environment = env;
serviceConfig = {
Type = "oneshot";
- EnvironmentFile = "/var/lib/mastodon/.secrets_env";
+ EnvironmentFile = [ "/var/lib/mastodon/.secrets_env" ];
} // cfgService;
script = let
olderThanDays = toString cfg.mediaAutoRemove.olderThanDays;