nixos-config/hosts/vault-tec/cache.nix
gwg313 701051522a
feat: add panopticon(attic cache server)
Signed-off-by: gwg313 <gwg313@pm.me>

attic client

Signed-off-by: gwg313 <gwg313@pm.me>
2025-07-09 08:08:39 -04:00

15 lines
306 B
Nix

{
atticCacheName ? "mycache",
cacheURLs ? [
"http://attic.lan:8080"
"http://attic.zt:8080"
],
}:
{
nix.settings = {
substituters = map (url: "${url}/${atticCacheName}") cacheURLs;
trusted-public-keys = [
"${atticCacheName}:AbCdEfGhIjKlMnOpQrStUvWxYz1234567890="
];
};
}