2024-07-04 02:57:36 +03:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./options
|
2024-08-11 01:54:36 +03:00
|
|
|
./simulacrum/test-data.nix
|
2024-07-04 02:57:36 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
services.ways = {
|
|
|
|
nodes.host = config.services.websites.nodes.host;
|
|
|
|
nixos.host = ./host.nix;
|
2024-08-11 01:54:36 +03:00
|
|
|
simulacrum = {
|
|
|
|
enable = true;
|
|
|
|
deps = [ "nginx" "acme-client" "dns" "certificates" "consul" ];
|
|
|
|
settings = ./simulacrum/test.nix;
|
|
|
|
};
|
2024-07-04 02:57:36 +03:00
|
|
|
};
|
|
|
|
|
2024-07-04 19:12:52 +03:00
|
|
|
dns.records = lib.mapAttrs'
|
2024-08-03 00:26:46 +03:00
|
|
|
(_: cfg: lib.nameValuePair cfg.dnsRecord.name ({ ... }: {
|
|
|
|
imports = [ cfg.dnsRecord.value ];
|
|
|
|
root = cfg.domainSuffix;
|
|
|
|
}))
|
2024-07-04 19:12:52 +03:00
|
|
|
config.ways;
|
2024-07-04 02:57:36 +03:00
|
|
|
}
|