mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(exports): service access
This commit is contained in:
parent
91918b8061
commit
871b1c5b2d
69 changed files with 1317 additions and 509 deletions
35
modules/system/exports/kerberos.nix
Normal file
35
modules/system/exports/kerberos.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{lib, gensokyo-zone, ...}: let
|
||||
inherit (gensokyo-zone.lib) mapAlmostOptionDefaults;
|
||||
inherit (lib.attrsets) mapAttrs;
|
||||
in {
|
||||
config.exports.services.kerberos = { config, ... }: {
|
||||
id = "krb5";
|
||||
ports = mapAttrs (_: mapAlmostOptionDefaults) {
|
||||
default = {
|
||||
port = 88;
|
||||
transport = "tcp";
|
||||
};
|
||||
udp = {
|
||||
port = config.ports.default.port;
|
||||
transport = "udp";
|
||||
};
|
||||
kadmin = {
|
||||
port = 749;
|
||||
transport = "tcp";
|
||||
};
|
||||
kpasswd = {
|
||||
port = 464;
|
||||
transport = "tcp";
|
||||
};
|
||||
kpasswd-udp = {
|
||||
port = config.ports.kpasswd.port;
|
||||
transport = "udp";
|
||||
};
|
||||
ticket4 = {
|
||||
enable = false;
|
||||
port = 4444;
|
||||
transport = "udp";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue