From 99b4c696ff52a044478805a93ede74ca5bcb82b9 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 28 Feb 2023 20:36:03 +0100 Subject: [PATCH] modules/ipfs: add datastore config --- modules/ipfs/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/modules/ipfs/default.nix b/modules/ipfs/default.nix index 9a6314c..ed55017 100644 --- a/modules/ipfs/default.nix +++ b/modules/ipfs/default.nix @@ -42,6 +42,25 @@ in { "/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb" "/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa" ]; + Datastore = { + BloomFilterSize = 0; + GCPeriod = "1h"; + HashOnRead = false; + NoSync = true; + Spec = { + mounts = []; + child = { + path = "badgerds"; + syncWrites = false; + truncate = true; + type = "badgerds"; + }; + prefix = "badger.datastore"; + type = "measure"; + }; + StorageGCWatermark = 90; + StorageMax = "200GB"; + }; }; };