ipfs configuration for a private network shared by niczos and zomelab
This commit is contained in:
parent
f8b22b6a5d
commit
39e5c36766
5 changed files with 69 additions and 1 deletions
|
|
@ -1,34 +0,0 @@
|
|||
let
|
||||
npins = import /etc/nixos/npins/default.nix;
|
||||
pkgs-unstable = import npins.nixpkgs-unstable { }; # TODO remove once kubo-0.43 is stable
|
||||
in
|
||||
{
|
||||
warnings = [
|
||||
"Ensure you added your primary user to the ipfs group !!!"
|
||||
];
|
||||
services.kubo = {
|
||||
autoMount = true;
|
||||
package = pkgs-unstable.kubo;
|
||||
enable = true;
|
||||
extraFlags = [
|
||||
"--mount-mfs"
|
||||
"/mfs"
|
||||
];
|
||||
settings = {
|
||||
Addresses.API = "/ip4/127.0.0.1/tcp/5001";
|
||||
Discovery.MDNS.Enabled = false;
|
||||
Plugins.Plugins.telemetry.Config.Mode = "off";
|
||||
Datastore.StorageMax = "10G";
|
||||
Bootstrap = [
|
||||
"/dnsaddr/zomelab/p2p/12D3KooWLW9Pms1H8KHMVnXTu8LtmnU29XDwvNmDbirGtDyKeiB6"
|
||||
"/dnsaddr/niczos/p2p/12D3KooWFVC9GmZqcYQNRiLfAmN8PjzdGE2yfMZZbbFpRaMtAKis"
|
||||
# "/dnsaddr/pepere/p2p"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Firewall
|
||||
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [
|
||||
4001
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue