mlabs-haskell / spo-anywhere

Install Cardano nodes anywhere with the help of NixOS
https://mlabs-haskell.github.io/spo-anywhere/
Apache License 2.0
1 stars 0 forks source link

SPO-anywhere

Tool leveraging on nixos-anywhere to deploy Cardano stake pools on any cloud provider.

Setup

Install nix and enable flakes, eg. with Determinate nix installer.

Use the project's binary cache to skip builds. Edit /etc/nix/nix.conf (or related settings in NixOS config) and merge the new values separated by spaces into the options:

substituters = ...  https://cache.staging.mlabs.city/spo-anywhere
trusted-public-keys = ... spo-anywhere:bmI58BmXnmeuAtMKbm3qhwiJ1RALMfo6cDwncfaGa6Q=

Don't edit ~/.config/nix/nix.conf in your home directory. Don't add users to trusted-users because it is insecure.

Development Shell

SPO-anywhere provides a devshell that includes some useful tools and aliases:

❯ nix develop
...
❄️ Welcome to the spo-anywhere devshell ❄️
...
[Tools]

  build-all  - Build all the checks
  check      - Alias of `nix flake check`
  fmt        - Format the source tree
...

A .envrc is also provided, using [direnv]() and nix-direnv is suggested.

License information

cardano.nix released under terms of Apache-2.0 license.