2025-01-05 06:02:42 -05:00
|
|
|
{ config, ... }:
|
2025-01-05 05:42:52 -05:00
|
|
|
{
|
|
|
|
services.atticd = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
environmentFile = config.sops.secrets."attic/env".path;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
listen = "[::]:8090";
|
|
|
|
api-endpoint = "https://cache.cything.io/";
|
|
|
|
allowed-hosts = [ "cache.cything.io" ];
|
2025-01-05 06:11:02 -05:00
|
|
|
require-proof-of-possession = false;
|
2025-01-05 05:42:52 -05:00
|
|
|
compression.type = "zstd";
|
2025-01-05 06:11:02 -05:00
|
|
|
database.url = "postgresql:///atticd?host=/run/postgresql";
|
|
|
|
|
2025-01-05 05:42:52 -05:00
|
|
|
storage = {
|
2025-01-05 17:24:03 -05:00
|
|
|
type = "local";
|
|
|
|
path = "/mnt/attic";
|
2025-01-05 05:42:52 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
chunking = {
|
2025-01-05 17:24:03 -05:00
|
|
|
nar-size-threshold = 128 * 1024 * 1024;
|
|
|
|
min-size = 64 * 1024 * 1024;
|
|
|
|
avg-size = 128 * 1024 * 1024;
|
|
|
|
max-size = 256 * 1024 * 1024;
|
2025-01-05 05:42:52 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|