feat: expanded all lists

This commit is contained in:
Nick 2025-01-08 19:06:14 -06:00
parent 59cc199722
commit bb0b55b011
144 changed files with 1798 additions and 507 deletions

View file

@ -5,8 +5,15 @@
lib,
...
}: let
inherit (flake.config.machines.devices) server;
inherit (flake.config.services.instances) mastodon web;
inherit
(flake.config.machines.devices)
server
;
inherit
(flake.config.services.instances)
mastodon
web
;
service = mastodon;
host = web.domains.url1;
localhost = web.localhost.address0;
@ -68,23 +75,33 @@ in {
sidekiqThreads = 25;
sidekiqProcesses = {
all = {
jobClasses = [];
jobClasses = [
];
threads = null;
};
default = {
jobClasses = ["default"];
jobClasses = [
"default"
];
threads = 5;
};
ingress = {
jobClasses = ["ingress"];
jobClasses = [
"ingress"
];
threads = 5;
};
push-pull = {
jobClasses = ["push" "pull"];
jobClasses = [
"push"
"pull"
];
threads = 5;
};
mailers = {
jobClasses = ["mailers"];
jobClasses = [
"mailers"
];
threads = 5;
};
};
@ -169,7 +186,9 @@ in {
fileSystems."/var/lib/${service.name}" = {
device = service.paths.path0;
fsType = "none";
options = ["bind"];
options = [
"bind"
];
depends = [server.storage0.mount];
};
@ -178,11 +197,14 @@ in {
"Z ${service.sops.path0} 0755 ${service.name} ${service.name} -"
];
users.users.${service.name}.extraGroups = ["postgres"];
users.users.${service.name}.extraGroups = [
"postgres"
];
networking = {
firewall = {
allowedTCPPorts = [];
allowedTCPPorts = [
];
};
};
}