mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
ipfs: fixup
This commit is contained in:
parent
674988c828
commit
ebee9576a4
2 changed files with 5 additions and 8 deletions
|
@ -17,17 +17,15 @@ in
|
||||||
serviceFdlimit = 65536;
|
serviceFdlimit = 65536;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
AutoNAT.ServiceMode = "disabled"; # maybe "enabled" for servers?
|
AutoNAT.ServiceMode = "disabled"; # maybe "enabled" for servers?
|
||||||
Reprovider.Strategy = "pinned";
|
|
||||||
Routing.Type = "dhtclient"; # maybe "dht" for servers?
|
Routing.Type = "dhtclient"; # maybe "dht" for servers?
|
||||||
Swarm.ConnMgr.HighWater = 1000;
|
|
||||||
Swarm.ConnMgr.LowWater = 50;
|
|
||||||
Swarm.DisableNatPortMap = true; # Disable UPnP
|
Swarm.DisableNatPortMap = true; # Disable UPnP
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.ipfs.postStart = ''
|
# ipfs-desktop defaults for ConnMgr
|
||||||
chmod g+r /var/lib/ipfs/config
|
Swarm.ConnMgr.GracePeriod = "1m";
|
||||||
'';
|
Swarm.ConnMgr.HighWater = 40;
|
||||||
|
Swarm.ConnMgr.LowWater = 20;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,6 @@ in
|
||||||
"video"
|
"video"
|
||||||
"wheel"
|
"wheel"
|
||||||
"wireshark"
|
"wireshark"
|
||||||
config.services.ipfs.group
|
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys = { inherit keys; };
|
openssh.authorizedKeys = { inherit keys; };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue