From baf07fe418cb7d5325935bfa33953de126e034bf Mon Sep 17 00:00:00 2001 From: James Walker Date: Fri, 9 Jul 2021 22:36:48 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=8A=20aristotle:=20tune=20ipfs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ipfs/default.nix | 9 +++++++++ nix/sources.json | 12 ++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/modules/ipfs/default.nix b/modules/ipfs/default.nix index 843fe3a..faa8f35 100644 --- a/modules/ipfs/default.nix +++ b/modules/ipfs/default.nix @@ -16,6 +16,15 @@ ]; extraConfig = { API = { HTTPHeaders = { Access-Control-Allow-Origin = [ "*" ]; }; }; + Routing = { Type = "dhtclient"; }; + Swarm = { + ConnMgr = { + Type = "basic"; + LowWater = 25; + HighWater = 50; + GracePeriod = "1m0s"; + }; + }; }; }; }; diff --git a/nix/sources.json b/nix/sources.json index 3081a82..1f529e9 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -5,10 +5,10 @@ "homepage": "https://nix-community.github.io/home-manager/", "owner": "nix-community", "repo": "home-manager", - "rev": "9ad0024d4d292c628d4c9a50c2347f23418d7000", - "sha256": "1i7nyw2j5d6wh4d1bx89fxsxfg60c0g66w5wzxx8g79x4n4gnxyc", + "rev": "06ee8ec8dfc4554c374052cd7b7083765748af99", + "sha256": "1g2d6f4mhj71drnyh8wa7358f36vfw7yxdfq9cjwff1zaa9lp142", "type": "tarball", - "url": "https://github.com/nix-community/home-manager/archive/9ad0024d4d292c628d4c9a50c2347f23418d7000.tar.gz", + "url": "https://github.com/nix-community/home-manager/archive/06ee8ec8dfc4554c374052cd7b7083765748af99.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "niv": { @@ -29,10 +29,10 @@ "homepage": "", "owner": "NixOS", "repo": "nixpkgs", - "rev": "db6e089456cdddcd7e2c1d8dac37a505c797e8fa", - "sha256": "02yk20i9n5nhn6zgll3af7kp3q5flgrpg1h5vcqfdqcck8iikx4b", + "rev": "f51caec3fc179127011da5568d572f096971ac63", + "sha256": "15rry0xwsyrck3pkms7c57lyldv21r2kich6j4180731x9m7hxf5", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/db6e089456cdddcd7e2c1d8dac37a505c797e8fa.tar.gz", + "url": "https://github.com/NixOS/nixpkgs/archive/f51caec3fc179127011da5568d572f096971ac63.tar.gz", "url_template": "https://github.com///archive/.tar.gz" } }