nixcfg/systems/x86_64-linux/sgx-nixos/atticd.nix
Harald Hoyer f20e87cd50 feat: Add attic-client to system packages in atticd.nix
This commit includes the addition of attic-client to environment.systemPackages in atticd.nix for x86_64-linux systems. The
2024-06-28 11:29:07 +02:00

40 lines
1.1 KiB
Nix

{ pkgs, lib, config, ... }:
{
environment.systemPackages = with pkgs; [
attic-client
];
services.atticd = {
enable = true;
# Replace with absolute path to your credentials file
credentialsFile = "/etc/atticd.env";
settings = {
listen = "[::]:8080";
# Data chunking
#
# Warning: If you change any of the values here, it will be
# difficult to reuse existing chunks for newly-uploaded NARs
# since the cutpoints will be different. As a result, the
# deduplication ratio will suffer for a while after the change.
chunking = {
# The minimum NAR size to trigger chunking
#
# If 0, chunking is disabled entirely for newly-uploaded NARs.
# If 1, all NARs are chunked.
nar-size-threshold = 64 * 1024; # 64 KiB
# The preferred minimum size of a chunk, in bytes
min-size = 16 * 1024; # 16 KiB
# The preferred average size of a chunk, in bytes
avg-size = 64 * 1024; # 64 KiB
# The preferred maximum size of a chunk, in bytes
max-size = 256 * 1024; # 256 KiB
};
};
};
}