Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.23 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.23 KB

LiberaForms flake

This flake provides the package, NixOS module, NixOS container and development environment for LiberaForms.

nix flake show github:ngi-nix/liberaforms-flake - show what the flake provides

nix develop github:ngi-nix/liberaforms-flake - enter the devShell for LiberaForms

LiberaForms on NixOS

These instructions are for running a local development instance of LiberaForms in a NixOS container.

For an easy way to deploy a production LiberaForms instance to NixOS on a public cloud VM, see this guide.

Nix flake

The flake.nix (along with the nix/module.nix) contains the configuration to run a LiberaForms instance and all of its dependencies and recommended configurations (postgres, nginx, and db backups). For running in a local nixos-container HTTPS is disabled by default, and flask (the python web framework used to create LiberaForms) is running in development mode. All of the required secrets and variables are generated automatically.

NixOS container

See this guide.

Tests

The unit and functional test suite for LiberaForms can be run on NixOS using the command nix flake check.