summaryrefslogtreecommitdiff
path: root/configuration/gitea.nix
blob: f9e48f41814e050f821c4f835d6b49a6809be654 (plain)
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
{ ... }:
{
  users.groups.git = {};
  users.users.git = {
    isSystemUser = true;
    group = "git";
    hashedPassword = "$6$Rc//lmBr5orYHn.0$M9y3Zj4zCe723r8hYGIhPC5kPv5SVGHjF1FsjrT9IIx7trxuNTLtLDQVL9lhmR5/7bFMUFEf0CMx9w7.vgXgY0";
    openssh.authorizedKeys.keyFiles = [
      ../files/id_tarrel.pub
      ../files/id_work.pub
    ];
  };

  services.gitea = {
    enable = true;
    appName = "JAP56 Git Server";
    group = "git";
    user = "git";
    settings.server = {
      HTTP_PORT = 80;
      DOMAIN = "snorlax";
    };
    useWizard = true;
  };

  services.openssh.settings.AllowUsers = [ "git" ];
}