flake/systems/etna/attic.nix
uku 26480457ff
chore(etna): refactor and split into different files
this also disables the matrix server (conduit) and removes an unused open firewall port
2024-04-02 20:53:12 +02:00

32 lines
No EOL
738 B
Nix

{config, ...}: {
cfTunnels."attic.uku3lig.net" = "http://localhost:6000";
services.atticd = {
enable = true;
credentialsFile = config.age.secrets.atticEnv.path;
settings = {
listen = "[::]:6000";
api-endpoint = "https://attic.uku3lig.net/";
storage = {
type = "local";
path = "/data/attic";
};
chunking = {
nar-size-threshold = 65536; # 64 KiB
min-size = 16384; # 16 KiB
avg-size = 65536; # 64 KiB
max-size = 262144; # 256 KiB
};
compression.type = "zstd";
garbage-collection = {
interval = "1 day";
default-retention-period = "6 weeks";
};
};
};
}