2022-12-27 10:10:53 -05:00
|
|
|
{ config, ... }:
|
2021-10-30 23:33:26 -04:00
|
|
|
|
|
|
|
{
|
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 = {
|
2023-07-27 16:24:11 -04:00
|
|
|
Discovery = { MDNS = { Enabled = true; }; };
|
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
|
|
|
};
|
|
|
|
}
|