athens/modules/ipfs/cluster.nix

36 lines
613 B
Nix
Raw Normal View History

2021-10-30 23:33:26 -04:00
{ config, lib, pkgs, ... }:
{
2021-11-15 21:26:30 -05:00
imports = [
./default.nix
../../services/ipfs-cluster.nix
];
2021-10-30 23:33:26 -04:00
services = {
2022-10-07 06:19:56 -04:00
kubo = {
2021-10-30 23:33:26 -04:00
enable = true;
2022-10-30 23:04:36 -04:00
settings = {
2021-10-30 23:33:26 -04:00
Swarm = {
AddrFilters = null;
ConnMgr = {
Type = "basic";
LowWater = 25;
HighWater = 50;
GracePeriod = "1m0s";
};
};
};
};
2021-11-15 21:26:30 -05:00
ipfs-cluster = {
enable = true;
consensus = "crdt";
secretFile = config.sops.secrets.ipfs-cluster-secret.path;
};
};
sops.secrets.ipfs-cluster-secret = {
owner = "ipfs";
2021-10-30 23:33:26 -04:00
};
}