From 44f4e9a0239d1441d7d14c571a88953c707d385a Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 15 Jan 2021 00:58:36 +0000 Subject: [PATCH] clouvider-fra01: add ipfs --- ops/nixos/clouvider-fra01/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ops/nixos/clouvider-fra01/default.nix b/ops/nixos/clouvider-fra01/default.nix index 36a20426f1..54a50e18f3 100644 --- a/ops/nixos/clouvider-fra01/default.nix +++ b/ops/nixos/clouvider-fra01/default.nix @@ -98,6 +98,9 @@ in { ipv6.addresses = [{ address = "2a0f:93c0:0:22::2"; prefixLength = 126; }]; }; firewall.allowPing = true; + firewall.allowedTCPPorts = [ + 4001 # ipfs + ]; }; my.ip.tailscale = "100.75.142.119"; @@ -174,5 +177,14 @@ in { virtualHosts = vhosts; }; + services.ipfs = { + enable = true; + extraConfig = { + Discovery.MDNS.Enabled = false; + Swarm.DisableNatPortMap = true; + }; + dataDir = "/store/ipfs"; + }; + system.stateVersion = "20.09"; }