Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/forgejo: changelog and migration instructions #267248

Merged
merged 9 commits into from
Nov 17, 2023
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2311.section.md
bendlas marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@

- [c2FmZQ](https://github.com/c2FmZQ/c2FmZQ/), an application that can securely encrypt, store, and share files, including but not limited to pictures and videos. Available as [services.c2fmzq-server](#opt-services.c2fmzq-server.enable).

- [forgejo](https://forgejo.org/), a git forge. Previously deployed as a drop-in to gitea. Available as [services.forgejo](#opt-services.forgejo.enable). See migration instructions in [manual](https://nixos.org/manual/nixos/stable#module-forgejo)
bendlas marked this conversation as resolved.
Show resolved Hide resolved

## Backward Incompatibilities {#sec-release-23.11-incompatibilities}

- `network-online.target` has been fixed to no longer time out for systems with `networking.useDHCP = true` and `networking.useNetworkd = true`.
Expand Down
25 changes: 25 additions & 0 deletions nixos/modules/services/misc/forgejo.md
bendlas marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Forgejo {#module-forgejo}

Forgejo is a soft-fork of gitea, with strong community focus, as well
as on self-hosting and federation. [Codeberg](https://codeberg.org) is
deployed from it.

See [upstream docs](https://forgejo.org/docs/latest/)

## Migration from Gitea {#module-forgejo-migration-gitea}

The method of choice for running forgejo used to be with the
`services.gitea` module. For migrating such a setup to the
`services.forgejo` module (for default options):

```sh
systemctl stop gitea
mv /var/lib/gitea /var/lib/forgejo
runuser -u postgres -- psql -c '
ALTER USER gitea RENAME TO forgejo;
ALTER DATABASE gitea RENAME TO forgejo;
'
nixos-rebuild switch
chown -R forgejo:forgejo /var/lib/forgejo
systemctl restart forgejo
```
1 change: 1 addition & 0 deletions nixos/modules/services/misc/forgejo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -677,5 +677,6 @@ in
};
};

meta.doc = ./forgejo.md;
meta.maintainers = with lib.maintainers; [ bendlas emilylange ];
}