about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nix/hosts/corrino/www/nix-cache/index.txt22
-rw-r--r--nix/hosts/corrino/www/nix-cache/nix-cache.emile.space.nix9
-rw-r--r--nix/hosts/corrino/www/nix-cache/nix-cache.emile.space/index.txt20
3 files changed, 26 insertions, 25 deletions
diff --git a/nix/hosts/corrino/www/nix-cache/index.txt b/nix/hosts/corrino/www/nix-cache/index.txt
deleted file mode 100644
index 6e3353b..0000000
--- a/nix/hosts/corrino/www/nix-cache/index.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Nix Cache by emile
-
-Public key:
-
-	nix-cache.emile.space:3xzJknXMsR/EL3SBTu6V6oCOkjxe6MgJm0nOrElW33A=
-
-NixOS Configuration:
-
-  nix.settings = {
-    substituters = [
-      "https://nix-cache.emile.space"
-    ];
-    trusted-public-keys = [
-	  "nix-cache.emile.space:3xzJknXMsR/EL3SBTu6V6oCOkjxe6MgJm0nOrElW33A="
-    ];
-  }
-
-Try:
-
-  nix build --substituters "https://nix-cache.emile.space" \
-  --trusted-public-keys "nix-cache.emile.space:3xzJknXMsR/EL3SBTu6V6oCOkjxe6MgJm0nOrElW33A=" \
-  "git+https://git.emile.space/hefe.git#r2wars-web"
diff --git a/nix/hosts/corrino/www/nix-cache/nix-cache.emile.space.nix b/nix/hosts/corrino/www/nix-cache/nix-cache.emile.space.nix
index cbb6a0d..48887ad 100644
--- a/nix/hosts/corrino/www/nix-cache/nix-cache.emile.space.nix
+++ b/nix/hosts/corrino/www/nix-cache/nix-cache.emile.space.nix
@@ -6,6 +6,12 @@
     enableACME = true;
 
     locations = {
+      "= /" = {
+        index = "/index.txt";
+      };
+      "= /index.txt" = {
+        root = ./nix-cache.emile.space;
+      };
       "/" = {
         proxyPass = "http://${config.services.harmonia.settings.bind}";
       };
@@ -24,9 +30,6 @@
   # locations."= /" = {
   # 	index = "/index.txt";
   # };
-  #   locations."= /index.txt" = {
-  #     root = ./index.txt;
-  #   };
   #   locations."= /nix/store/" = {
   #     extraConfig = ''
   #       return 404;
diff --git a/nix/hosts/corrino/www/nix-cache/nix-cache.emile.space/index.txt b/nix/hosts/corrino/www/nix-cache/nix-cache.emile.space/index.txt
new file mode 100644
index 0000000..659f90e
--- /dev/null
+++ b/nix/hosts/corrino/www/nix-cache/nix-cache.emile.space/index.txt
@@ -0,0 +1,20 @@
+Nix Cache by emile
+
+Public key:
+
+  nix-cache.emile.space:3xzJknXMsR/EL3SBTu6V6oCOkjxe6MgJm0nOrElW33A=
+
+NixOS Configuration:
+
+  nix.settings = {
+    substituters = [
+      "https://nix-cache.emile.space"
+    ];
+    trusted-public-keys = [
+	  "nix-cache.emile.space:3xzJknXMsR/EL3SBTu6V6oCOkjxe6MgJm0nOrElW33A="
+    ];
+  }
+
+Try:
+
+  nix build --substituters "https://nix-cache.emile.space" --trusted-public-keys "nix-cache.emile.space:3xzJknXMsR/EL3SBTu6V6oCOkjxe6MgJm0nOrElW33A=" "git://git.emile.space/hefe#r2wars-web"