From d8c3db3c80094c38d5681e4217fcbf44841e13a1 Mon Sep 17 00:00:00 2001 From: Mohamed Chrayed Date: Wed, 11 Mar 2026 11:07:23 +0100 Subject: [PATCH] cache debugging --- modules/platform/cache.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/platform/cache.nix b/modules/platform/cache.nix index 3bd3edf..dcbeed9 100644 --- a/modules/platform/cache.nix +++ b/modules/platform/cache.nix @@ -1,10 +1,16 @@ { ... }: { flake.nixosModules.platform-sys-cache = { config, ... }: { - sops.secrets."garnix/token" = {}; + sops.secrets."garnix/token" = { + path = "/etc/nix/netrc"; + mode = "0400"; + }; nix.settings = { substituters = [ "https://cache.garnix.io" ]; trusted-public-keys = [ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ]; - netrc-file = config.sops.secrets."garnix/token".path; + netrc-file = "/etc/nix/netrc"; }; + nix.extraOptions = '' + narinfo-cache-positive-ttl = 3600 + ''; }; }