{ 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"; }