mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
remove ipfs
This commit is contained in:
parent
b3e4fbceb6
commit
9d60e4c195
1 changed files with 0 additions and 31 deletions
|
@ -1,31 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.sconfig.ipfs;
|
||||
in
|
||||
{
|
||||
options.sconfig.ipfs = {
|
||||
enable = lib.mkEnableOption "Turn on IPFS";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
services.ipfs = {
|
||||
enable = true;
|
||||
emptyRepo = true;
|
||||
gatewayAddress = "/ip4/127.0.0.1/tcp/8001";
|
||||
# Had issues without fdlimit. 65536 value taken from nixpkgs example
|
||||
serviceFdlimit = 65536;
|
||||
extraConfig = {
|
||||
AutoNAT.ServiceMode = "disabled"; # maybe "enabled" for servers?
|
||||
Routing.Type = "dhtclient"; # maybe "dht" for servers?
|
||||
Swarm.DisableNatPortMap = true; # Disable UPnP
|
||||
|
||||
# ipfs-desktop defaults for ConnMgr
|
||||
# Swarm.ConnMgr.GracePeriod = "1m";
|
||||
Swarm.ConnMgr.HighWater = 40;
|
||||
Swarm.ConnMgr.LowWater = 20;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue