summaryrefslogtreecommitdiff
path: root/sys/gitea/default.nix
blob: 6096950c9a9535a3a2b97ce6dab38304b0075177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, lib, ... }:
with lib; let
  cfg = config.local.gitea;
in
{
  options.local.gitea = {
    enable = mkEnableOption "gitea";
  };

  config = mkIf cfg.enable {
    services.gitea = {
      enable = true;
      useWizard = true;
    };

    users = {
      users.gitea.uid = 962;
      groups.gitea.gid = 962;
    };
  };
}