mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-08-26 22:40:15 +00:00
utils: Deprecate rosenthal-transformation-guix.
This commit is contained in:
parent
21391bab6e
commit
ba37355893
@ -6,6 +6,7 @@
|
||||
#:use-module (srfi srfi-1)
|
||||
;; Utilities
|
||||
#:use-module (guix channels)
|
||||
#:use-module (guix deprecation)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
@ -21,52 +22,52 @@
|
||||
#:export (rosenthal-transformation-guix
|
||||
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)
|
||||
(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-channel
|
||||
(channel
|
||||
(name 'rosenthal)
|
||||
(url "https://codeberg.org/hako/rosenthal.git")
|
||||
(branch "trunk")
|
||||
(introduction
|
||||
(make-channel-introduction
|
||||
"7677db76330121a901604dfbad19077893865f35"
|
||||
(openpgp-fingerprint
|
||||
"13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7")))))
|
||||
|
||||
(define %rosenthal-channel
|
||||
(channel
|
||||
(name 'rosenthal)
|
||||
(url "https://codeberg.org/hako/rosenthal.git")
|
||||
(branch "trunk")
|
||||
(introduction
|
||||
(make-channel-introduction
|
||||
"7677db76330121a901604dfbad19077893865f35"
|
||||
(openpgp-fingerprint
|
||||
"13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7")))))
|
||||
(lambda (os)
|
||||
(operating-system
|
||||
(inherit os)
|
||||
(services
|
||||
(cons* (simple-service 'guix-moe guix-service-type
|
||||
(guix-extension
|
||||
(authorized-keys %rosenthal-signing-keys)
|
||||
(substitute-urls '("https://cache-cdn.guix.moe"))))
|
||||
|
||||
(lambda (os)
|
||||
(operating-system
|
||||
(inherit os)
|
||||
(services
|
||||
(cons* (simple-service 'guix-moe guix-service-type
|
||||
(guix-extension
|
||||
(authorized-keys %rosenthal-signing-keys)
|
||||
(substitute-urls '("https://cache-cdn.guix.moe"))))
|
||||
(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))))))))))))
|
||||
|
||||
(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.
|
||||
(define* (rosenthal-transformation-zfs #:key boot? (config (zfs-configuration)))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user