New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipfs: Set IPFS_PATH globally when daemon is enabled #21992
Conversation
The IPFS daemon runs under the Example:
Or you can always init a repo for your user in the respective home directory. |
Well, yes, you can do that. That has the same effect as setting the config file, which also points the command-line tool at that address. What I'm saying is there's no point in enabling the daemon without doing so, and therefore it makes sense to make it the default target for the command. If you'd prefer adding a wrapper script that sets --api, I can do that. |
Sorry for the delay :) Maybe I have the wrong idea how your setup looks like. Wrapping As for the |
I'll have to check, but I think I was able to add files as well. The situation I'm trying to avoid is, basically: ...that is to say, at the moment, enabling the daemon is worse than useless. It takes over IPFS' desired ports, but the daemon isn't accessible unless you explicitly ask for it; a level of understanding that the average user won't have. From reading the IPFS design docs, it also seems like the intention is to have a single system-wide daemon rather than per-user daemons. (Which won't work, because ports aren't scoped per-user.) |
Just as feedback: I'm running the ipfs service on my notebook and I aliased |
I wasn't aware of this PR before, I just created #25531. This fix here doesn't work I'm pretty sure, since I'm not sure about the directory permissions, I'll still have to test |
I think this PR should probably be closed since the merging of #25531 allows me to simply run |
Motivation for this change
There's little point to running a system-wide daemon which can't be accessed.
Setting IPFS_PATH allows users other than
ipfs
to use the ipfs commands.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)