aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/selfhost/forgejo.nix
blob: 73fbdaaccccd6e880f58a853dbc05df672295cdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  lib,
  config,
  ...
}: let
  cfg = config.collinux.services.selfhost.forgejo;
in
  lib.mkIf cfg.enable {
    services.forgejo = {
      enable = true;
      database.type = "postgres";
      settings = {
        server = {
          DOMAIN = "localhost";
          HTTP_PORT = 8010;
        };
        service.DISABLE_REGISTRATION = false;
      };
    };
  }