IPFS: Difference between revisions

imported>JackyWangMislantiaJnirvana
No edit summary
Luflosi (talk | contribs)
Add instructions for adding the user to the correct group
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
== Installation ==
== Installation ==


Install and enable ''kubo'', which is the recommended IPFS implementation
Install and enable ''kubo'' (which is the recommended IPFS implementation) and add your user to the correct group


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
services.kubo = {
services.kubo = {
   enable = true;
   enable = true;
  settings.Addresses.API = ["/ip4/127.0.0.1/tcp/5001"];
};
}
users.users.alice.extraGroups = [ config.services.kubo.group ];
</syntaxhighlight>
</syntaxhighlight>
Currently <code>settings.Addresses.API</code> need to be non-empty, otherwise Kubo will not start. See [https://github.com/ipfs/kubo/issues/10056#issuecomment-1674104498 this issue] for details.
Note that after enabling this option and rebuilding your system, you need to log out and back in for the "IPFS_PATH" environment variable to be present in your shell and for your user to become part of the ipfs group. Until you do that, the CLI tools won't be able to talk to the daemon by default.


== Usage ==
== Usage ==