Skip to content

ngi-nix/deploy-liberaforms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Deploy LiberaForms

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 to any virtualization platform supported by NixOS.

Steps

  1. 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).
  2. 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 root@forms.example.org.
  3. Clone this repo git clone https://github.com/ngi-nix/deploy-liberaforms to your local system running Nix with flakes enabled.
  4. Modify the flake.nix file to fill in the required configs (hostname, domain, email).
  5. Run the deployment nix run github:serokell/deploy-rs .#liberaforms-vm.

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 NixOS page of the LiberaForms documentation.

TODO:

  • Update the nixpkgs branches in the flake inputs, and the image branch in these docs, to 21.11 after it is released (for greater stability).
  • Update 'github.com/ngi-nix/liberaforms' flake inputs and doc links to the upstream repo gitlab.com/liberaforms/liberaforms if/when the package flake is merged there.

About

Easy deployment of LiberaForms to a NixOS server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages