blob: 106764b582deea2f0f4d836affac4e3ba588751b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{ appConfig, config, lib, pkgs, ... }:
{
services.cgit.default.enable = true;
services.cgit.default.nginx.virtualHost = appConfig.domain;
services.cgit.default.repos = lib.mapAttrs
(name: attrs: {
desc = attrs.description;
path = "/var/lib/git/${name}";
})
appConfig.repositories;
services.cgit.default.settings = appConfig.settings;
users.users.git.isSystemUser = true;
users.users.git.home = "/var/lib/git";
users.users.git.group = "nogroup";
}
|