Radish alpha
r
rad:z254T5p17bdFPmzfDojsdjo4HjpoZ
Radicle Infrastructure as Code (NixOS, OpenTofu, …)
Radicle
Git
doc: Add `README.md`
Fintan Halpenny committed 11 months ago
commit 1ffc76bd7f0acd854b1c75921d1f7cc07e90464c
parent fe62c25
1 file changed +33 -0
added README.md
@@ -0,0 +1,33 @@
+
# radicle-infra
+

+
Easing the deployment of Radicle seed nodes with the magic of Nix 🌱 ➕ ❄️
+

+
## Deployment
+

+
Using `radicle-nix` (`rad:zTGn5tnYJgF8qd6KDuodURvUvwLe`) we can easily deploy
+
seed nodes to target hosts.
+

+
To update the version of `radicle-node` package, changes are made in
+
`radicle-nix`. To reflect those changes in `radicle-infra`, first update the
+
Flake input:
+

+
```
+
nix flake lock --update-input radicle
+
```
+

+
Then the following option should be changed in `os/host/xyz/seed/radicle.nix`:
+

+
```nix
+
{pkgs, ...}: {
+
  services.radicle.package = pkgs.radicle-node-1_2;
+
}
+
```
+

+
Then to deploy to the target, for example `seed.radicle.xyz`, use the following
+
command. You might have to adjust the value of `$USER` if the username on your
+
local machine does not match the username of your account on the target machine.
+
Also, note that you may have to get permission to be added as a user first:
+

+
```
+
HOST=seed.radicle.xyz nixos-rebuild switch --target-host "${USER}@${HOST}" --build-host "${USER}@${HOST}" --use-remote-sudo --flake ".#${HOST}"
+
```