-
Notifications
You must be signed in to change notification settings - Fork 96
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
Change the nix-bitcoin deployment from forking this repo to importing the module #136
Conversation
Great!
Here are other relevant changes that I think are sensible:
|
Looks good!
Agreed
Thanks, must've turned it off somehow
So I guess this would also work with fetchTarball. Agreed.
I think this should remains the default. We can leave the 50% comment and add a FIXME.
Nice idea with the self-contained example scripts. All that effort to set up the Nixops does seem to leave some traces. My VirtualBox GUI still lists the previous deployments.
Ooh, this would be awesome.
Good idea. In a different PR?
Perhaps the shell would be still useful for development. |
Actually not a good idea because that may lead users to losing coins by opening lightning channels which will be deleted with the file system on exit of the script. |
I've re-enabled the hardened profile: erikarvstedt@422ba68
These scripts have no practical purpose, they're just a launchpad for experimenting.
Could confirm this after running the script a few times, happens only sporadically.
Yes.
OK, but can I delete the nixops input and ssh hack? I've added branch nix-bitcoin-as-module-ea-squashed which is a squashed version of nix-bitcoin-as-module-ea. If you want you can set this PR to the squashed branch, while re-signing your commits and removing me as a commiter. |
5550608
to
b2cf942
Compare
Cherry-picked @erikarvstedt's commits, renamed |
I noticed that hardcoding a url/sah256 for fetchTarball in The resulting |
daefffa
to
9e75f4f
Compare
… the module Instead of forking this repo, it is now recommended that users simply import the nix-bitcoin module. This commit adds an example directory that contains the network/ examples and a shell.nix for deployment with nixops.
Note to self: need to add nix-bitcoin-release to travis. |
Looks great! Will do a proper review tomorrow. |
Maybe a QEMU VM example which would only require nix as the sole dependency could be helpful. What do you think? |
If that means we can remove the reliance on VirtualBox for the tutorials that would be super helpful! |
Sorry, this took longer than expected. Here are the fixes I'd propose. I think we should revert
|
Note: Commit |
457b0b9
to
af7ca3d
Compare
Thank you very much for your suggestions! I updated the branch and replaced the release.
Good point about copy and pasting. There are in fact some lines with output (the hash of the nixos release for example). I changed it to your suggestion.
Cool! I added a fixup to chmod the SSH secret key, otherwise it wouldn't work for me.
Haven't picked that one yet because I intended to output the GPG error in case of failure (but then apparently forgot).
I didn't pick this, and instead just fixed the release I already made in this repo. It didn't work anymore because I had set the "pre-release" flag.
Ah, nice, didn't know about runCommand.
As per the installation instructions you copy the examples/shell.nix file into your own directory and if you want to update you run the
My understanding is in the gpg world |
Thanks for catching this, missed this in my local testing due to not re-checking out the worktree from the repo (git only stores the executable bit).
Sorry, I missed you were using a binary format. What about
Fixed in erikarvstedt@1663185 in my new fixup branch. |
That was easier than expected. Pushed an updated release. |
This avoids an extra delay and the unexpected creation of secrets when run in another dir. Needed for the 'fetch-release' script introduced in a later commit.
Prepares, signs and pushes a release to github.
This allows getting the hash of the latest (or some other) release using github releases and gpg verification.
Now you clone nix-bitcoin and start out from the examples.
5d7c23d
to
b2e15c1
Compare
Also pushed a release with notes here: https://github.com/fort-nix/nix-bitcoin/releases/tag/v0.0.1 |
WIP: because requires doc changes and ideally tests.