This repository contains a Nix flake for easily deploying an instance of LiberaForms to a public NixOS VM using the deploy-rs tool.
The default/tested config is for Digital Ocean (DO), but in theory it could be deployed to any virtualization platform supported by NixOS.
- Build a custom image for DO
from the
nixos-unstable
branch, upload it through their web interface, and then use it to create a new droplet (VM). - Configure a DNS A record to point to the IP address of the new VM and then
confirm that you can login as root at your domain, for example
ssh [email protected]
. - Clone this repo
git clone https://github.com/ngi-nix/liberaforms-flake
to your local system running Nix with flakes enabled. - Modify the
flake.nix
file to fill in the required configs (hostname, domain, email). - Run the deployment
nix run github:serokell/deploy-rs .#liberaforms-x86_64-linux
.
You should now have a new instance of LiberaForms running on your domain and can follow the instructions on bootstrapping a first Admin user. For more information, see the container page.