mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
24 lines
514 B
Nix
24 lines
514 B
Nix
{
|
|
lib,
|
|
gensokyo-zone,
|
|
...
|
|
}: let
|
|
inherit (gensokyo-zone.lib) mapAlmostOptionDefaults mkAlmostOptionDefault;
|
|
inherit (lib.attrsets) mapAttrs;
|
|
in {
|
|
config.exports.services.ldap = {config, ...}: {
|
|
defaults.port.listen = mkAlmostOptionDefault "lan";
|
|
ports = mapAttrs (_: mapAlmostOptionDefaults) {
|
|
default = {
|
|
port = 389;
|
|
transport = "tcp";
|
|
starttls = true;
|
|
};
|
|
ssl = {
|
|
port = 636;
|
|
ssl = true;
|
|
listen = "wan";
|
|
};
|
|
};
|
|
};
|
|
}
|