From 8bd64e2ba771e9e9b67164bd2fa025fed6e6f222 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 5 Jan 2025 06:11:02 -0500 Subject: [PATCH] trusted substituter --- flake.nix | 10 ++++++++++ hosts/chunk/attic.nix | 7 +++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 4a6668f..d5f4e7b 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,16 @@ nixpkgs-btrbk.url = "github:cything/nixpkgs/btrbk"; # unmerged PR }; + nixConfig = { + extra-substituters = [ + "https://cache.cything.io" + ]; + # extra-trusted-public-keys = [ + # "" + # ]; + builders-use-substitutes = true; + }; + outputs = { self, diff --git a/hosts/chunk/attic.nix b/hosts/chunk/attic.nix index 5048719..7749d79 100644 --- a/hosts/chunk/attic.nix +++ b/hosts/chunk/attic.nix @@ -9,17 +9,16 @@ listen = "[::]:8090"; api-endpoint = "https://cache.cything.io/"; allowed-hosts = [ "cache.cything.io" ]; - - jwt = { }; - + require-proof-of-possession = false; compression.type = "zstd"; + database.url = "postgresql:///atticd?host=/run/postgresql"; + storage = { type = "s3"; region = "default"; bucket = "cy7"; endpoint = "https://e3e97aac307d106a7becea43cef8fcbd.r2.cloudflarestorage.com"; }; - database.url = "postgresql:///atticd?host=/run/postgresql"; chunking = { nar-size-threshold = 64 * 1024; # 64 KiB