Platform 23.11 #96
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue