From 3b0e66dc01280fad82b4ba53d717976df3a9bfd8 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 12 May 2024 17:24:46 +0200 Subject: [PATCH] hosts/hydra-1: Serve plain nix store on cache.nix.clerie.de --- hosts/hydra-1/nix-cache.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/hydra-1/nix-cache.nix b/hosts/hydra-1/nix-cache.nix index 743c8aa..c85c237 100644 --- a/hosts/hydra-1/nix-cache.nix +++ b/hosts/hydra-1/nix-cache.nix @@ -37,6 +37,18 @@ locations."= /index.txt" = { root = ./cache.nix.clerie.de; }; + locations."= /nix/store/" = { + extraConfig = '' + return 404; + ''; + }; + locations."/nix/store/" = { + root = "/"; + extraConfig = '' + autoindex on; + autoindex_exact_size off; + ''; + }; locations."/" = { proxyPass = "http://[::1]:5005"; extraConfig = ''