refactor for kubo module updates

This commit is contained in:
Max Headroom 2022-10-30 14:10:57 +01:00
parent 8418b90875
commit 9cf71a2e60
2 changed files with 6 additions and 6 deletions

View file

@ -52,7 +52,7 @@ in {
environment = {
HYPRSPACE_SWARM_KEY = config.age.secrets.ipfs-swarm-key.path;
} // (lib.optionalAttrs config.services.kubo.enable {
HYPRSPACE_IPFS_API = config.services.kubo.apiAddress;
HYPRSPACE_IPFS_API = config.services.kubo.settings.Addresses.API;
});
serviceConfig = {
Restart = "on-failure";

View file

@ -5,16 +5,16 @@ let
in {
services.kubo = {
enable = true;
swarmAddress = [
"/ip4/0.0.0.0/tcp/4001"
"/ip4/0.0.0.0/tcp/110"
];
localDiscovery = true;
autoMount = true;
startWhenNeeded = false;
enableGC = true;
extraFlags = [ "--enable-pubsub-experiment" "--enable-namesys-pubsub" ];
extraConfig = {
settings = {
Addresses.Swarm = [
"/ip4/0.0.0.0/tcp/4001"
"/ip4/0.0.0.0/tcp/110"
];
Bootstrap = [
"/ip4/95.216.8.12/tcp/110/p2p/Qmd7QHZU8UjfYdwmjmq1SBh9pvER9AwHpfwQvnvNo3HBBo"
"/ip4/51.38.87.150/tcp/4001/p2p/12D3KooWDUgNsoLVauCDpRAo54mc4whoBudgeXQnZZK2iVYhBLCN"