Files
nix/modules/services/attic.nix
T
2026-10-25 10:08:15 -05:00

27 lines
640 B
Nix

{
den.aspects.services.attic = let port = 8090; in {
tunnel = { subdomain = "cache"; inherit port; };
nixos = { config, host, ... }: {
services.atticd = {
enable = true;
environmentFile = "${config.users.users.${host.owner}.home}/.config/attic/env";
settings = {
listen = "127.0.0.1:${toString port}";
substituter-endpoint = "https://cache.${host.domain}/";
chunking = {
nar-size-threshold = 64 * 1024;
min-size = 16 * 1024;
avg-size = 64 * 1024;
max-size = 256 * 1024;
};
};
};
};
};
}