unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#48912] [PATCH] hydra: bordeaux: Add a how to code snippet.
@ 2021-06-08  8:10 Joshua Branson via Guix-patches via
  2021-06-08 15:14 ` bug#48912: " Christopher Baines
  0 siblings, 1 reply; 2+ messages in thread
From: Joshua Branson via Guix-patches via @ 2021-06-08  8:10 UTC (permalink / raw)
  To: 48912; +Cc: mail, Joshua Branson

* hydra/nginx/html/bordeaux/index.html: (Using These substitutes):
Fixed a typo, and added a how to code snippet for users of guix system.
---
 hydra/nginx/html/bordeaux/index.html | 42 +++++++++++++++++++++++++++-
 1 file changed, 41 insertions(+), 1 deletion(-)

diff --git a/hydra/nginx/html/bordeaux/index.html b/hydra/nginx/html/bordeaux/index.html
index a74f2e2..89042af 100644
--- a/hydra/nginx/html/bordeaux/index.html
+++ b/hydra/nginx/html/bordeaux/index.html
@@ -36,7 +36,7 @@
       <b>arm-linux-gnueabihf</b> availability is limited.
     </p>
 
-    <h2>Using these substiutes</h2>
+    <h2>Using these substitutes</h2>
     <p>
       The URL to use to fetch substitutes is <code>https://bordeaux.guix.gnu.org</code>,
       and they're signed with the following key.
@@ -47,5 +47,45 @@
   )
  )</pre>
     </p>
+    <p>
+        Users of Guix System can start using these substitutes with a
+        bit of scheme code that looks like:
+
+        <pre>
+(define %my-desktop-services
+  (modify-services
+      %desktop-services
+    (guix-service-type
+     config =>
+     (guix-configuration
+      (inherit config)
+      (substitute-urls
+       (append (list "https://bordeaux.guix.gnu.org/";)
+               %default-substitute-urls))
+      (authorized-keys
+       (append
+        (list
+         (plain-file
+                     "bordeaux.guix.gnu.org.signing.key"
+                     "
+(public-key
+ (ecc
+  (curve Ed25519)
+  (q #7D602902D3A2DBB83F8A0FB98602A754C5493B0B778C8D1DD4E0F41DE14DE34F#)
+  )
+ )"))
+        %default-authorized-guix-keys)))))))
+
+
+(operating-system
+    ...
+    (services (append (list (service dhcp-client-service-type)
+                            (service openssh-service-type
+                                     (openssh-configuration
+                                      (openssh openssh-sans-x)
+                                      (port-number 2222))))
+                      %my-desktop-services)))
+        </pre>
+    </p>
   </body>
 </html>
-- 
2.31.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#48912: [PATCH] hydra: bordeaux: Add a how to code snippet.
  2021-06-08  8:10 [bug#48912] [PATCH] hydra: bordeaux: Add a how to code snippet Joshua Branson via Guix-patches via
@ 2021-06-08 15:14 ` Christopher Baines
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Baines @ 2021-06-08 15:14 UTC (permalink / raw)
  To: Joshua Branson; +Cc: 48912-done

[-- Attachment #1: Type: text/plain, Size: 424 bytes --]


Joshua Branson <jbranso@dismail.de> writes:

> * hydra/nginx/html/bordeaux/index.html: (Using These substitutes):
> Fixed a typo, and added a how to code snippet for users of guix system.

Thanks, I've gone ahead, merged and deployed this.

I did consider trying to add something like this myself, but I'm still
focused on getting this in as a default, which should make things even
easier for users.

Thanks again,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-08 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08  8:10 [bug#48912] [PATCH] hydra: bordeaux: Add a how to code snippet Joshua Branson via Guix-patches via
2021-06-08 15:14 ` bug#48912: " Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).