From 8307144ed6691ad49aa59fd6686e7b54efc9bc3a Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 25 Jun 2023 13:19:14 -0400 Subject: [PATCH] attic: update --- hosts/sakura/services/atticd.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/sakura/services/atticd.nix b/hosts/sakura/services/atticd.nix index 3e11f21..aa142d2 100644 --- a/hosts/sakura/services/atticd.nix +++ b/hosts/sakura/services/atticd.nix @@ -1,12 +1,15 @@ {config, ...}: { sops.secrets.attic-secret = {}; + services.atticd = { enable = true; - credentialsFile = config.sops.secrets.attic-secret.path; + credentialsFile = "/etc/attic/atticd.env"; settings = { listen = "[::]:8100"; allowed-hosts = ["cache.notohh.dev"]; - api-endpoint = "https://cache.notohh.dev"; + database.url = "postgres://atticd:atticd@192.168.1.211:5432/atticd"; + api-endpoint = "https://cache.notohh.dev/"; + require-proof-of-possession = false; chunking = { nar-size-threshold = 64 * 1024; # 64 KiB