summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremilylange <git@emilylange.de>2024-02-10 20:47:04 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-02-11 17:06:35 +0000
commitbecc9ce1932376dc9afaad81617fe0acdcdc67b7 (patch)
tree54d273443106913bad98523f50ebf96a05296a56
parentMerge pull request #288047 from NixOS/backport-287841-to-release-23.11 (diff)
downloadnixpkgs-origin/backport-287856-to-release-23.11.tar.gz
nixos/gitea: warn when using `services.gitea` with forgejoorigin/backport-287856-to-release-23.11
since this is no longer supported and we have a dedicated module for forgejo for quite some time now. Such warning is, however, becoming more and more important, since forgejo is no longer a soft-fork of gitea, but rather a hard-fork. And as such, it will slowly but surely no longer be a drop-in replacement. Additionally, I hope that this warning will prevent users from reporting issues with forgejo to nixos/gitea maintainers. The accompanying forgejo.md, from which the manual section is created, will be updated over the next few weeks when forgejo officially publishes their blog post about all this and the way forward, so we can link to it. (cherry picked from commit ca3cfc841aa9a064462b19b4559efa06433d9725)
-rw-r--r--nixos/modules/services/misc/gitea.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix
index be528a298991..f3377cc56aaa 100644
--- a/nixos/modules/services/misc/gitea.nix
+++ b/nixos/modules/services/misc/gitea.nix
@@ -671,6 +671,11 @@ in
optional (cfg.database.password != "") "config.services.gitea.database.password will be stored as plaintext in the Nix store. Use database.passwordFile instead." ++
optional (cfg.extraConfig != null) ''
services.gitea.`extraConfig` is deprecated, please use services.gitea.`settings`.
+ '' ++
+ optional (lib.getName cfg.package == "forgejo") ''
+ Running forgejo via services.gitea.package is no longer supported.
+ Please use services.forgejo instead.
+ See https://nixos.org/manual/nixos/unstable/#module-forgejo for migration instructions.
'';
# Create database passwordFile default when password is configured.