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:
commit
417fdb06d7
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue