Merge pull request #287856 from emilylange/nixos-gitea-package-forgejo-warning

nixos/gitea: warn when using `services.gitea` with forgejo
This commit is contained in:
Maximilian Bosch 2024-02-11 18:06:05 +01:00 committed by GitHub
commit 417fdb06d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -681,6 +681,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.database.password != "") "config.services.gitea.database.password will be stored as plaintext in the Nix store. Use database.passwordFile instead." ++
optional (cfg.extraConfig != null) '' optional (cfg.extraConfig != null) ''
services.gitea.`extraConfig` is deprecated, please use services.gitea.`settings`. 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. # Create database passwordFile default when password is configured.