cache debugging

This commit is contained in:
2026-03-11 11:07:23 +01:00
parent 01ab692f27
commit d8c3db3c80

View File

@@ -1,10 +1,16 @@
{ ... }: { { ... }: {
flake.nixosModules.platform-sys-cache = { config, ... }: { flake.nixosModules.platform-sys-cache = { config, ... }: {
sops.secrets."garnix/token" = {}; sops.secrets."garnix/token" = {
path = "/etc/nix/netrc";
mode = "0400";
};
nix.settings = { nix.settings = {
substituters = [ "https://cache.garnix.io" ]; substituters = [ "https://cache.garnix.io" ];
trusted-public-keys = [ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ]; 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
'';
}; };
} }