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:
parent
d4fa506bac
commit
701051522a
10 changed files with 460 additions and 2 deletions
15
hosts/vault-tec/cache.nix
Normal file
15
hosts/vault-tec/cache.nix
Normal 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="
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue