cluster/services/attic: add dns records

This commit is contained in:
Max Headroom 2023-12-03 23:39:58 +01:00
parent 6d22f7bdb7
commit 9abd4b6c0a

View file

@ -1,3 +1,5 @@
{ config, depot, ... }:
{
services.attic = {
nodes = {
@ -18,4 +20,13 @@
allow.attic = [ "read" "write" ];
};
};
dns.records = let
serverAddrs = map
(node: depot.hours.${node}.interfaces.primary.addrPublic)
config.services.attic.nodes.server;
in {
cache-api.target = serverAddrs;
cache.target = serverAddrs;
};
}