Unverified Commit 417fdb06 authored by Maximilian Bosch's avatar Maximilian Bosch Committed by GitHub
Browse files

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

nixos/gitea: warn when using `services.gitea` with forgejo
parents 464391cb ca3cfc84
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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.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.