snowflake/hosts/sora/services/attic.nix
notohh 082de10236
flake.lock: update
nushell: update config

wezterm: add fallback font

ame: remove chatterino

tsuki: add lutris

forgejo: update mailer pwd

attic: increase retention period

passgen: bump version
2024-06-17 04:50:19 -04:00

47 lines
1 KiB
Nix

{
inputs,
config,
pkgs,
...
}: {
imports = [inputs.attic.nixosModules.atticd];
sops.secrets.attic = {};
environment.systemPackages = [pkgs.attic];
services.atticd = {
enable = true;
credentialsFile = config.sops.secrets.attic.path;
settings = {
listen = "[::]:8200";
allowed-hosts = ["cache.flake.sh"];
database.url = "postgres://attic:attic@100.94.214.100:5432/attic";
api-endpoint = "https://cache.flake.sh/";
require-proof-of-possession = false;
chunking = {
nar-size-threshold = 0;
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 = "12 weeks";
};
compression = {
type = "zstd";
level = 9;
};
storage = {
type = "s3";
region = "us-east-1";
bucket = "kyasshu";
endpoint = "https://s3.flake.sh/";
};
};
};
}