Add streaming-processes option

This commit is contained in:
niten 2024-01-17 14:25:57 -08:00
parent 735dfab194
commit 01c6703a67
1 changed files with 8 additions and 0 deletions

View File

@ -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;
};
};
};