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
nixos/bitcoind: add bitcoind service #50618
Conversation
c7b2fc9
to
d8de551
Compare
d8de551
to
041c883
Compare
6d47266
to
5ad69f3
Compare
An |
@jonasnick I deliberately omitted that because that would have the plaintext password in the config file, whereas |
5ad69f3
to
224d8d6
Compare
once this is merged I'll open up a PR that implements multiple networks here: jb55@871b456 I'm currently using this to run both mainnet and testnet. |
What was the status of this? I have not looked into it for a while. |
I'll update this in the next few weeks, feel free to submit patches to make my life easier 😁 |
fwiw I've been using this in production since this PR was opened + a few patches I've added to add multi-network which I plan to PR once this is merged. |
224d8d6
to
cdc09e7
Compare
Addressed all comments except: #50618 (comment). Please advise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Things yet to address:
#50618 (comment) , In particular you shouldn't need a static uid/gid at all, see #60732 (comment).
Using literalExample
, https://github.com/NixOS/nixpkgs/pull/50618/files#r284444067
Adding a configFile
option, #50618 (comment)
cdc09e7
to
3489344
Compare
@infinisil Thanks for your review!
Done!
Ended up not setting a uid/gid, which makes them
Done!
Done!
Ended up removing |
It's a bit of a misnomer, but that option can in fact be used for non-temporary files/directories as well, and that is in fact the most common usage for it in NixOS. |
Ah okay, I think we'll stick with this for simplicity for now, perhaps someone else can PR the Let me know if I'm missing anything else! |
There is already an effort for removing such permission scripts in favor of |
3489344
to
3ad7961
Compare
Updated to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more minor round
3ad7961
to
f15118a
Compare
@infinisil Done! Thank you for your patience! |
:) |
Motivation for this change
Easily run bitcoind.
Things done