mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
18 lines
439 B
Nix
18 lines
439 B
Nix
{lib, gensokyo-zone, ...}: let
|
|
inherit (gensokyo-zone.lib) mapAlmostOptionDefaults mkAlmostOptionDefault;
|
|
inherit (lib.attrsets) mapAttrs;
|
|
in {
|
|
config.exports.services.freeipa = {
|
|
id = mkAlmostOptionDefault "ipa";
|
|
ports = mapAttrs (_: mapAlmostOptionDefaults) {
|
|
default = {
|
|
port = 443;
|
|
protocol = "https";
|
|
};
|
|
redirect = {
|
|
port = 80;
|
|
protocol = "http";
|
|
};
|
|
};
|
|
};
|
|
}
|