refactor for kubo module updates
This commit is contained in:
parent
8418b90875
commit
9cf71a2e60
2 changed files with 6 additions and 6 deletions
|
@ -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";
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue