add index.html file for substitutes server

This commit is contained in:
Murphy 2024-12-09 09:56:59 -05:00
parent b2f7c3c3b4
commit 5c9d155388
Signed by: freya
GPG key ID: 9FBC6FFD6D2DBF17
2 changed files with 86 additions and 0 deletions

82
files/index.html Normal file
View file

@ -0,0 +1,82 @@
<!DOCTYPE html>
<html lang="en">
<!-- index.html file hosted at https://substitutes.freya.cat -->
<head>
<title>Sakura substitute server</title>
<meta charset="utf-8">
<meta name="author" content="freya">
<meta name="color-scheme" content="#181818">
</head>
<body>
<style>
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
background: #181818;
color: #fff;
font-family: DejaVu Sans, sans-serif;
}
body {
padding: 10px;
margin: auto;
max-width: 800px;
}
a, a:visited {
text-decoration: none;
color: #fcd1d7;
}
a:hover, a:focus {
text-decoration: underline;
}
pre {
background: #fff;
color: #562135;
margin: 10px;
padding: 10px;
border-radius: 2px;
}
</style>
<h1>🌸 Sakura Guix Channel</h1>
<h2>substitutes.freya.cat</h2>
<hr>
<p>Sakua is a guix channel that packages things that you may want but guix dosen't have.</p>
<p>View the git repository on <a href="https://g.freya.cat/freya/sakura">forgejo</a>.</p>
<h3>Channel</h3>
<p>To add sakura to your guix channels, use the following specification.</p>
<pre><code>(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"))))</code></pre>
<h3>Substitutes</h3>
<p>Sakura hosts a substitute server at <a href="#">substitutes.freya.cat</a> with the cuirass server running at <a href="https://cuirass.freya.cat">cuirass.freya.cat</a>. You can modify your guix-service-type with the following specification to enable the sakura substitute server.</p>
<pre><code>(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)))))))</pre></code>
<p>... where sakura.pub is a path to a file holding the following signing key.</p>
<pre><code>(public-key
(ecc
(curve Ed25519)
(q #3E9614FD06AF20F9534DA0DE64FB9004878789744F26FFF2FF381E2EED1DEAC9#)
)
)</pre></code>
</body>
</html>

View file

@ -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