utils: rosenthal-transformation-guix: Update substitute server.

* modules/rosenthal/utils/transformations.scm (rosenthal-transformation-guix):
Use https://cache-cdn.guix.moe and place it before official substitute servers.
This commit is contained in:
Hilton Chain 2025-09-08 00:39:01 +08:00
parent 1d06558776
commit d4a25e7613
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -37,27 +37,26 @@
(operating-system (operating-system
(inherit os) (inherit os)
(services (services
(modify-services (operating-system-user-services os) (cons* (simple-service 'guix-moe guix-service-type
(guix-service-type (guix-extension
config => (guix-configuration (authorized-keys
(inherit config) (list %rosenthal-signing-key))
(channels (substitute-urls
(let ((configured-channels '("https://cache-cdn.guix.moe"))))
(guix-configuration-channels config)))
(if channel? (modify-services (operating-system-user-services os)
(cons %rosenthal-channel (guix-service-type
(or configured-channels %default-channels)) config => (guix-configuration
configured-channels))) (inherit config)
(guix (channels
(if guix-source? (let ((configured-channels
(guix-for-channels channels) (guix-configuration-channels config)))
(guix-configuration-guix config))) (if channel?
(authorized-keys (cons %rosenthal-channel
(cons %rosenthal-signing-key (or configured-channels
(guix-configuration-authorized-keys config))) %default-channels))
(substitute-urls configured-channels)))
(delete-duplicates (guix
`(,@(guix-configuration-substitute-urls config) (if guix-source?
,@(if substitutes? (guix-for-channels channels)
'("https://ci.boiledscript.com") (guix-configuration-guix config)))))))))))
'())))))))))))