depot/cluster/services/ways/default.nix

21 lines
438 B
Nix
Raw Normal View History

2024-07-04 02:57:36 +03:00
{ config, lib, ... }:
{
imports = [
./options
];
services.ways = {
nodes.host = config.services.websites.nodes.host;
nixos.host = ./host.nix;
simulacrum.deps = [ "nginx" "acme-client" "dns" "certificates" "consul" ];
2024-07-04 02:57:36 +03:00
};
dns.records = lib.mapAttrs'
(_: cfg: lib.nameValuePair cfg.dnsRecord.name ({ ... }: {
imports = [ cfg.dnsRecord.value ];
root = cfg.domainSuffix;
}))
config.ways;
2024-07-04 02:57:36 +03:00
}