{ config, lib, ... }: with lib; let cfg = config.modules.services.gitDaemon; in { disabledModules = [ "services/networking/git-daemon.nix" ]; imports = [ ../../overlays/git-daemon-module.nix ]; options.modules.services.gitDaemon = { enable = mkEnableOption "git daemon"; }; config = mkIf cfg.enable { services.gitDaemon = { enable = true; createUserAndGroup = false; basePath = "/var/lib/gitolite/repositories"; }; networking.firewall.allowedTCPPorts = [ 9418 ]; }; }