feat: add panopticon(attic cache server)

Signed-off-by: gwg313 <gwg313@pm.me>

attic client

Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
gwg313 2025-07-09 08:08:12 -04:00
parent d4fa506bac
commit 701051522a
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
10 changed files with 460 additions and 2 deletions

15
hosts/vault-tec/cache.nix Normal file
View file

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