nixos/modules/ipfs/kubo.nix

29 lines
686 B
Nix
Raw Normal View History

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;
2026-08-30 19:03:28 +02:00
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";
};
};
# Firewall
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [
4001
];
}