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 = {
|
environment = {
|
||||||
HYPRSPACE_SWARM_KEY = config.age.secrets.ipfs-swarm-key.path;
|
HYPRSPACE_SWARM_KEY = config.age.secrets.ipfs-swarm-key.path;
|
||||||
} // (lib.optionalAttrs config.services.kubo.enable {
|
} // (lib.optionalAttrs config.services.kubo.enable {
|
||||||
HYPRSPACE_IPFS_API = config.services.kubo.apiAddress;
|
HYPRSPACE_IPFS_API = config.services.kubo.settings.Addresses.API;
|
||||||
});
|
});
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
|
|
@ -5,16 +5,16 @@ let
|
||||||
in {
|
in {
|
||||||
services.kubo = {
|
services.kubo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
swarmAddress = [
|
|
||||||
"/ip4/0.0.0.0/tcp/4001"
|
|
||||||
"/ip4/0.0.0.0/tcp/110"
|
|
||||||
];
|
|
||||||
localDiscovery = true;
|
localDiscovery = true;
|
||||||
autoMount = true;
|
autoMount = true;
|
||||||
startWhenNeeded = false;
|
startWhenNeeded = false;
|
||||||
enableGC = true;
|
enableGC = true;
|
||||||
extraFlags = [ "--enable-pubsub-experiment" "--enable-namesys-pubsub" ];
|
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 = [
|
Bootstrap = [
|
||||||
"/ip4/95.216.8.12/tcp/110/p2p/Qmd7QHZU8UjfYdwmjmq1SBh9pvER9AwHpfwQvnvNo3HBBo"
|
"/ip4/95.216.8.12/tcp/110/p2p/Qmd7QHZU8UjfYdwmjmq1SBh9pvER9AwHpfwQvnvNo3HBBo"
|
||||||
"/ip4/51.38.87.150/tcp/4001/p2p/12D3KooWDUgNsoLVauCDpRAo54mc4whoBudgeXQnZZK2iVYhBLCN"
|
"/ip4/51.38.87.150/tcp/4001/p2p/12D3KooWDUgNsoLVauCDpRAo54mc4whoBudgeXQnZZK2iVYhBLCN"
|
||||||
|
|
Loading…
Reference in a new issue