From 9d60e4c19576fbeeef3de331ddecf5ec8e2a4b73 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sun, 18 Sep 2022 14:18:22 -0400 Subject: [PATCH] remove ipfs --- modules/ipfs.nix | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 modules/ipfs.nix diff --git a/modules/ipfs.nix b/modules/ipfs.nix deleted file mode 100644 index 195740c..0000000 --- a/modules/ipfs.nix +++ /dev/null @@ -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; - }; - }; - - }; -}