From 5c9d1553881a09a26636e611b8e63040604b07b1 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 9 Dec 2024 09:56:59 -0500 Subject: [PATCH] add index.html file for substitutes server --- files/index.html | 82 +++++++++++++++++++++++++++++++++++++++++++++ systems/cuirass.scm | 4 +++ 2 files changed, 86 insertions(+) create mode 100644 files/index.html diff --git a/files/index.html b/files/index.html new file mode 100644 index 0000000..00acfe9 --- /dev/null +++ b/files/index.html @@ -0,0 +1,82 @@ + + + + + Sakura substitute server + + + + + + +

🌸 Sakura Guix Channel

+

substitutes.freya.cat

+
+

Sakua is a guix channel that packages things that you may want but guix dosen't have.

+

View the git repository on forgejo.

+

Channel

+

To add sakura to your guix channels, use the following specification.

+
(channel
+  (name 'sakura)
+  (url "https://g.freya.cat/freya/sakura")
+  (branch "main")
+  (introduction
+    (make-channel-introduction
+      "8fb2f9c2fa414754c41c1c73665e3e73e12693ab"
+      (openpgp-fingerprint
+        "3CD3 65F0 373C EB13 853A  F568 9FBC 6FFD 6D2D BF17"))))
+

Substitutes

+

Sakura hosts a substitute server at substitutes.freya.cat with the cuirass server running at cuirass.freya.cat. You can modify your guix-service-type with the following specification to enable the sakura substitute server.

+
(service guix-service-type
+  (guix-configuration
+    (inherit config)
+    (substitute-urls
+      (append (list "https://substitutes.freya.cat")
+              %default-substitute-urls))
+    (authorized-keys
+      (append (list (local-file ".../sakura.pub"))
+              %default-authorized-guix-keys)))))))
+

... where sakura.pub is a path to a file holding the following signing key.

+
(public-key
+ (ecc
+  (curve Ed25519)
+  (q #3E9614FD06AF20F9534DA0DE64FB9004878789744F26FFF2FF381E2EED1DEAC9#)
+  )
+ )
+ + diff --git a/systems/cuirass.scm b/systems/cuirass.scm index 39cf3a4..2804619 100644 --- a/systems/cuirass.scm +++ b/systems/cuirass.scm @@ -2,6 +2,7 @@ (ice-9 match) (gnu packages ci) (gnu packages databases) + (gnu services) (gnu services cuirass) (gnu services avahi) (gnu services mcron) @@ -71,6 +72,9 @@ (cache "/var/cache/publish") (compression '(("zstd" 19))) (port 8080))) + ; guix publish index.html + (extra-special-file "/srv/http/index.html" + (local-file "../files/index.html")) ; postgresql (service postgresql-service-type (postgresql-configuration