2023-12-04 00:39:58 +02:00
|
|
|
{ config, depot, ... }:
|
|
|
|
|
2023-06-14 00:27:53 +03:00
|
|
|
{
|
|
|
|
services.attic = {
|
|
|
|
nodes = {
|
|
|
|
server = [ "VEGAS" ];
|
|
|
|
};
|
|
|
|
nixos = {
|
2023-06-16 18:12:38 +03:00
|
|
|
server = [
|
|
|
|
./server.nix
|
|
|
|
./binary-cache.nix
|
|
|
|
./nar-serve.nix
|
|
|
|
];
|
2023-06-14 00:27:53 +03:00
|
|
|
};
|
|
|
|
};
|
2023-10-31 23:19:08 +02:00
|
|
|
|
|
|
|
garage = {
|
|
|
|
keys.attic = { };
|
|
|
|
buckets.attic = {
|
|
|
|
allow.attic = [ "read" "write" ];
|
|
|
|
};
|
|
|
|
};
|
2023-12-04 00:39:58 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
2023-06-14 00:27:53 +03:00
|
|
|
}
|