nixos/radicle: init services#314440
Conversation
0ebff93 to
9ea3197
Compare
24b5fb5 to
c9f82a0
Compare
gador
left a comment
There was a problem hiding this comment.
Thanks for all your work towards radicle in NixOS! I like how you structured the module. I only have a few remarks.
When adding the test to all-tests.nix the nixosTests pass without issues 👍
|
@ju1m thanks a lot for picking this up. I am actually in Berlin with the Radicle team this week, which is why I couldn't review this today. Hopefully tomorrow! :) |
|
How about splitting into more packages? The web stuff is not necessary to run and administer a node. I have sketched that here: #309050 (comment) |
Sure, though not being used to Rust packaging I went to the most expedient in this PR. I think the splitting can go in another PR, I'll amend this PR to introduce |
@lorenzleutgeb, no hurry, thanks to the team for making such a promising tool, and thanks to you for pushing its integration into Nixpkgs, that's what caught my attention over it. |
There even is talk to move Then there's also the question whether it should be
Sweet! Yeah, there was some breakage in the protocol recently, and a nodes are now announcing the version they are running, to make upgrades smoother. Note that high I/O and CPU is being worked on: |
|
In my module, I implemented a check to catch invalid configuration in Here with a more obviously useless key: |
|
|
|
|
I'd really like to see this merged. Any ideas on how we can get someone with write permissions on board? @SuperSandro2000 could you do another review or merge please? 😃 |
|
I just spent a lot of time debugging what came down to: Without this fix, the service would fail with: apparently because it was trying to parse the path to the pubkey file, instead of its content. It seems like a gotcha or a bug that |
|
@dpc, I'm sorry this bug made you loose your time. But using $ nix repl
nix-repl> builtins.isPath "/run/secrets/radicle/seednode-pub"
false
nix-repl> builtins.isPath /run/secrets/radicle/seednode-pub
trueInstead, See #329731 for a fix. |
|
I'm happy to help improve it. :) BTW. Is there any existing Wiki page/guide? After getting my node set up, I have no idea how to get it to do things for me (like seed my repos). |
|
@dpc, you can |
|
Had connectivity issues because the app wouldn't bind to ipv6. Setting: fixed it. |
|
BTW. It would be great if: could just have its own key. What do you think? |
@dpc, you mean to add an alias to |
|
@ju1m I wish i could just: as it seems rather common need, and having to figure out and mimick config-file structure |
|
@dpc, you're raising a discoverability concern on NixOS but I will argue that it belongs to Radicle. Using |
|
Thanks! Fine with me. |
Description of changes
radicle-node.serviceradicle-httpd.serviceAddradicle-httpdtopkgs.radicle-noderadicle-httpdhas been put in a separate package in another PR.nixosTests.radicleradicle-httpdThings done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.