about summary refs log tree commit diff
path: root/hosts/common/server/gitea.nix
blob: 83380a0c992864738e9d7f6a5866097674cd47bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ config, pkgs, lib, ... }:

let cfg = config.services.gitea;
in {
  users.users.git = {
    description = "Gitea Service";
    home = cfg.stateDir;
    useDefaultShell = true;
    group = "git";
    isSystemUser = true;
  };
  users.groups.git = { };

  services.gitea = {
    enable = true;
    user = "git";
    domain = "git.fcuny.net";
    appName = "${cfg.domain}";
    rootUrl = "https://${cfg.domain}/";
    httpAddress = "127.0.0.1";
    httpPort = 8002;
    log.level = "Error";
    settings = { other.SHOW_FOOTER_VERSION = false; };
    dump.enable = false;
    database = { type = "sqlite3"; };
  };
}