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 = ''