summaryrefslogtreecommitdiffstats
path: root/krebs/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-12-03 09:20:14 +0100
committermakefu <github@syntax-fehler.de>2018-12-03 09:20:14 +0100
commit5782a4de2e5b5f4843a421bac7456e83790950d1 (patch)
tree9f8648d279419d03a20b5d14adca948c4f6a4834 /krebs/2configs
parentb8db7293383772b936b6937cc05b5588021ca693 (diff)
cache.nixos.org: provide index.html
Diffstat (limited to 'krebs/2configs')
-rw-r--r--krebs/2configs/cache.nsupdate.info.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/krebs/2configs/cache.nsupdate.info.nix b/krebs/2configs/cache.nsupdate.info.nix
index 056667d8c..db221686f 100644
--- a/krebs/2configs/cache.nsupdate.info.nix
+++ b/krebs/2configs/cache.nsupdate.info.nix
@@ -1,4 +1,4 @@
-{lib, ... }:
+{ pkgs, lib, ... }:
with lib;
let
domain = "cache.nsupdate.info";
@@ -17,9 +17,13 @@ in {
};
krebs.cachecache = {
enable = true;
- enableSSL = false; # disable letsencrypt for testing
+ enableSSL = true; # disable letsencrypt for testing
cacheDir = "/var/cache/nix-cache-cache";
maxSize = "10g";
+ indexFile = pkgs.fetchurl {
+ url = "https://raw.githubusercontent.com/krebs/35c3-nixos-cache/master/index.html";
+ sha256 = "0n9lji4rpi2wpfik3dvl92mmpfrywyp33iwsw7d8qmykk7l0hfp8";
+ };
# assumes that the domain is reachable from the internet
virtualHost = domain;