IPFS: Difference between revisions

imported>Luflosi
Change installation instructions to match the current state of the NixOS module
Luflosi (talk | contribs)
Add instructions for adding the user to the correct group
 
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">
Line 9: Line 9:
   enable = true;
   enable = true;
};
};
users.users.alice.extraGroups = [ config.services.kubo.group ];
</syntaxhighlight>
</syntaxhighlight>
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. Until you do that, the CLI tools won't be able to talk to the daemon by default.
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 ==