nix-config/hosts/caveman/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
888 B
Nix
Raw Normal View History

2022-11-03 20:49:26 +01:00
{ config, ... }:
{
system.stateVersion = "22.05";
c3d2.hq.statistics.enable = true;
c3d2.deployment = {
server = "server10";
mounts = [ "etc" "var"];
};
microvm = {
vcpu = 16;
mem = 6 * 1024;
};
networking = {
hostName = "caveman";
firewall.allowedTCPPorts = [ 80 443 ];
};
services.caveman = {
redis.maxmemory = config.microvm.mem * 1024 * 1024 * 3 / 2;
hunter = {
enable = true;
settings = {
max_workers = config.microvm.vcpu * 2;
hosts = with builtins;
filter isString (
split "\n" (
readFile ./mastodon-instances.txt
)
);
};
};
};
# services = {
# nginx = rec {
# enable = true;
# virtualHosts."" = {
# default = true;
# forceSSL = true;
# enableACME = true;
# };
# };
# };
}