Skip to content

forgejo

Configure and deploy Forgejo

Builds Forgejo from nixpkgs and creates an s6 service with app.ini configuration file.

Variables

Variable Type Default Description
forgejo_config string Raw app.ini configuration content for Forgejo. See defaults/main.yml#L10-L12 for an example and the upstream docs for all options.
forgejo_config_dir path /etc/forgejo Configuration directory for Forgejo
forgejo_data_dir path /var/lib/forgejo Data directory for Forgejo
forgejo_enabled boolean false Enable the Forgejo service
forgejo_group string forgejo System group for the Forgejo service
forgejo_package string
attrnixpkgs/c27cdad491a991b11ed731760aa2ef8db0cb0410#forgejo
Nix package attribute for Forgejo
forgejo_package_path path /opt/forgejo Nix build output path for Forgejo
forgejo_port string 3009 TCP port for the Forgejo web interface
forgejo_user string forgejo System user for the Forgejo service