mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
utils: Deprecate rosenthal-transformation-guix.
This commit is contained in:
1 file changed
+43
-42
@@ -6,6 +6,7 @@
|
|||||||
#:use-module (srfi srfi-1)
|
#:use-module (srfi srfi-1)
|
||||||
;; Utilities
|
;; Utilities
|
||||||
#:use-module (guix channels)
|
#:use-module (guix channels)
|
||||||
|
#:use-module (guix deprecation)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
@@ -21,52 +22,52 @@
|
|||||||
#:export (rosenthal-transformation-guix
|
#:export (rosenthal-transformation-guix
|
||||||
rosenthal-transformation-zfs))
|
rosenthal-transformation-zfs))
|
||||||
|
|
||||||
|
(define-deprecated rosenthal-transformation-guix
|
||||||
|
#f
|
||||||
|
(lambda* (#:key (substitutes? #t) (channel? #t) (guix-source? #f))
|
||||||
|
(define %rosenthal-signing-keys
|
||||||
|
(list (plain-file "gokuraku.pub"
|
||||||
|
"(public-key (ecc (curve Ed25519) (q #374EC58F5F2EC0412431723AF2D527AD626B049D657B5633AAAEBC694F3E33F9#)))")
|
||||||
|
(plain-file "nuporta.pub"
|
||||||
|
"(public-key (ecc (curve Ed25519) (q #552F670D5005D7EB6ACF05284A1066E52156B51D75DE3EBD3030CD046675D543#)))")))
|
||||||
|
|
||||||
(define* (rosenthal-transformation-guix #:key (substitutes? #t)
|
(define %rosenthal-channel
|
||||||
(channel? #t)
|
(channel
|
||||||
(guix-source? #f))
|
(name 'rosenthal)
|
||||||
(define %rosenthal-signing-keys
|
(url "https://codeberg.org/hako/rosenthal.git")
|
||||||
(list (plain-file "gokuraku.pub"
|
(branch "trunk")
|
||||||
"(public-key (ecc (curve Ed25519) (q #374EC58F5F2EC0412431723AF2D527AD626B049D657B5633AAAEBC694F3E33F9#)))")
|
(introduction
|
||||||
(plain-file "nuporta.pub"
|
(make-channel-introduction
|
||||||
"(public-key (ecc (curve Ed25519) (q #552F670D5005D7EB6ACF05284A1066E52156B51D75DE3EBD3030CD046675D543#)))")))
|
"7677db76330121a901604dfbad19077893865f35"
|
||||||
|
(openpgp-fingerprint
|
||||||
|
"13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7")))))
|
||||||
|
|
||||||
(define %rosenthal-channel
|
(lambda (os)
|
||||||
(channel
|
(operating-system
|
||||||
(name 'rosenthal)
|
(inherit os)
|
||||||
(url "https://codeberg.org/hako/rosenthal.git")
|
(services
|
||||||
(branch "trunk")
|
(cons* (simple-service 'guix-moe guix-service-type
|
||||||
(introduction
|
(guix-extension
|
||||||
(make-channel-introduction
|
(authorized-keys %rosenthal-signing-keys)
|
||||||
"7677db76330121a901604dfbad19077893865f35"
|
(substitute-urls '("https://cache-cdn.guix.moe"))))
|
||||||
(openpgp-fingerprint
|
|
||||||
"13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7")))))
|
|
||||||
|
|
||||||
(lambda (os)
|
(modify-services (operating-system-user-services os)
|
||||||
(operating-system
|
(guix-service-type
|
||||||
(inherit os)
|
config => (guix-configuration
|
||||||
(services
|
(inherit config)
|
||||||
(cons* (simple-service 'guix-moe guix-service-type
|
(channels
|
||||||
(guix-extension
|
(let ((configured-channels
|
||||||
(authorized-keys %rosenthal-signing-keys)
|
(guix-configuration-channels config)))
|
||||||
(substitute-urls '("https://cache-cdn.guix.moe"))))
|
(if channel?
|
||||||
|
(cons %rosenthal-channel
|
||||||
|
(or configured-channels
|
||||||
|
%default-channels))
|
||||||
|
configured-channels)))
|
||||||
|
(guix
|
||||||
|
(if guix-source?
|
||||||
|
(guix-for-channels channels)
|
||||||
|
(guix-configuration-guix config))))))))))))
|
||||||
|
|
||||||
(modify-services (operating-system-user-services os)
|
|
||||||
(guix-service-type
|
|
||||||
config => (guix-configuration
|
|
||||||
(inherit config)
|
|
||||||
(channels
|
|
||||||
(let ((configured-channels
|
|
||||||
(guix-configuration-channels config)))
|
|
||||||
(if channel?
|
|
||||||
(cons %rosenthal-channel
|
|
||||||
(or configured-channels
|
|
||||||
%default-channels))
|
|
||||||
configured-channels)))
|
|
||||||
(guix
|
|
||||||
(if guix-source?
|
|
||||||
(guix-for-channels channels)
|
|
||||||
(guix-configuration-guix config)))))))))))
|
|
||||||
|
|
||||||
;; NOTE: Booting from ZFS requires patching Guix.
|
;; NOTE: Booting from ZFS requires patching Guix.
|
||||||
(define* (rosenthal-transformation-zfs #:key boot? (config (zfs-configuration)))
|
(define* (rosenthal-transformation-zfs #:key boot? (config (zfs-configuration)))
|
||||||
|
|||||||
Reference in new issue
Block a user