From 01c6703a67a59f9d996eacf4153a3416e931052e Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 17 Jan 2024 14:25:57 -0800 Subject: [PATCH] Add streaming-processes option --- mastodon-container.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mastodon-container.nix b/mastodon-container.nix index 84e78e1..67c01e9 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -36,6 +36,13 @@ in { default = [ ]; }; + streaming-processes = mkOption { + type = int; + description = + "Number of processes to use for Mastodon streaming. Recommended is (#cores - 1)."; + default = 4; + }; + smtp = { host = mkOption { type = str; @@ -105,6 +112,7 @@ in { database.createLocally = true; configureNginx = true; automaticMigrations = true; + streamingProcesses = cfg.streaming-processes; }; }; };