From cfe57d1d90e6b7d3041e6ad43f93d407a10bd210 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Sun, 4 Jun 2023 00:25:22 +0200 Subject: Set up offloading from laptop to servers --- tw/channels.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'tw/channels.scm') diff --git a/tw/channels.scm b/tw/channels.scm index ff9cdfac..712e891c 100644 --- a/tw/channels.scm +++ b/tw/channels.scm @@ -30,6 +30,33 @@ ) ")) +;; Authorize other machines' Guix signing keys, for offloading. +(define %tw-signing-keys + (list (plain-file "lud-signing-key.pub" "\ +(public-key + (ecc + (curve Ed25519) + (q #907985F2DEC4E15FAF29F4029FEADD266DD6563F7E9548160965C7E61EEDCA51#) + ) + ) +") + (plain-file "vin-signing-key.pub" "\ +(public-key + (ecc + (curve Ed25519) + (q #752B01B2CC6E1730BFD8F2B4CF9B9D3D29A07B4B7763EACBD8DEEE9F46E96561#) + ) + ) +") + (plain-file "lap-signing-key.pub" "\ +(public-key + (ecc + (curve Ed25519) + (q #DF75857BAD66DB4ED4F3DC6450C9E0923D3162435FDE281B536F40EA22FAD6CF#) + ) + ) +"))) + (define-public %system-channel-services ;; The gaming channel (https://gitlab.com/guix-gaming-channels) is per-user only. (list (simple-service 'nonguix guix-service-type @@ -37,5 +64,9 @@ (authorized-keys (list %nonguix-signing-key)) (substitute-urls '("https://substitutes.nonguix.org")))) + (simple-service 'offloading guix-service-type + (guix-extension + (authorized-keys %tw-signing-keys))) + (extra-special-file "/etc/guix/channels.scm" (scheme-file "channels.scm" %system-channels)))) -- cgit v1.2.3