snowflake/hosts/sakura/services/atticd.nix

26 lines
619 B
Nix
Raw Normal View History

2023-06-12 00:04:26 -04:00
{config, ...}: {
2023-06-19 08:19:17 -04:00
sops.secrets.attic-secret = {};
2023-06-12 00:04:26 -04:00
services.atticd = {
enable = true;
2023-06-19 08:19:17 -04:00
credentialsFile = config.sops.secrets.attic-secret.path;
2023-06-12 00:04:26 -04:00
settings = {
listen = "[::]:8100";
allowed-hosts = ["cache.notohh.dev"];
api-endpoint = "https://cache.notohh.dev";
chunking = {
nar-size-threshold = 64 * 1024; # 64 KiB
min-size = 16 * 1024; # 16 KiB
avg-size = 64 * 1024; # 64 KiB
max-size = 256 * 1024; # 256 KiB
};
garbage-collection = {
interval = "12 hours";
default-retention-period = "2 weeks";
};
};
};
}