diff options
| author | Hilton Chain <hako@ultrarare.space> | 2025-06-12 02:15:06 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2025-06-12 21:57:56 +0800 |
| commit | 7be4267bd9037c8d8790bd840d35c539bdf192b7 (patch) | |
| tree | 5812c850595e9f45a413b0b2879f446dc5603db1 | |
| parent | dff018fa52c8db55dbff7a4a5483ec7e771ea305 (diff) | |
nongnu: installation-os-nonfree: Use Nonguix system transformations.
* nongnu/system/install.scm (installation-os-nonfree): Use Nonguix system
transformations.
(%signing-key, %channels): Delete variables.
| -rw-r--r-- | nongnu/system/install.scm | 64 |
1 files changed, 14 insertions, 50 deletions
diff --git a/nongnu/system/install.scm b/nongnu/system/install.scm index 508621e..c99b703 100644 --- a/nongnu/system/install.scm +++ b/nongnu/system/install.scm | |||
| @@ -2,70 +2,34 @@ | |||
| 2 | ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com> | 2 | ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com> |
| 3 | ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz> | 3 | ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz> |
| 4 | ;;; Copyright © 2022 Jonathan Brielmaier <jonathan.brielmaier@web.de> | 4 | ;;; Copyright © 2022 Jonathan Brielmaier <jonathan.brielmaier@web.de> |
| 5 | ;;; Copyright © 2024 Hilton Chain <hako@ultrarare.space> | 5 | ;;; Copyright © 2024, 2025 Hilton Chain <hako@ultrarare.space> |
| 6 | 6 | ||
| 7 | ;; Generate a bootable image (e.g. for USB sticks, etc.) with: | 7 | ;; Generate a bootable image (e.g. for USB sticks, etc.) with: |
| 8 | ;; $ guix system image --image-type=iso9660 nongnu/system/install.scm | 8 | ;; $ guix system image --image-type=iso9660 nongnu/system/install.scm |
| 9 | 9 | ||
| 10 | (define-module (nongnu system install) | 10 | (define-module (nongnu system install) |
| 11 | #:use-module (guix channels) | 11 | #:use-module (nonguix transformations) |
| 12 | #:use-module (guix gexp) | ||
| 13 | #:use-module (gnu packages curl) | 12 | #:use-module (gnu packages curl) |
| 14 | #:use-module (gnu packages package-management) | ||
| 15 | #:use-module (gnu packages version-control) | 13 | #:use-module (gnu packages version-control) |
| 16 | #:use-module (gnu packages vim) | 14 | #:use-module (gnu packages vim) |
| 17 | #:use-module (gnu packages zile) | 15 | #:use-module (gnu packages zile) |
| 18 | #:use-module (gnu services) | ||
| 19 | #:use-module (gnu services base) | ||
| 20 | #:use-module (gnu system) | 16 | #:use-module (gnu system) |
| 21 | #:use-module (gnu system install) | 17 | #:use-module (gnu system install) |
| 22 | #:use-module (nongnu packages linux) | 18 | #:use-module (gnu system linux-initrd) |
| 23 | #:export (installation-os-nonfree)) | 19 | #:export (installation-os-nonfree)) |
| 24 | 20 | ||
| 25 | ;; https://substitutes.nonguix.org/signing-key.pub | ||
| 26 | (define %signing-key | ||
| 27 | (plain-file "nonguix.pub" "\ | ||
| 28 | (public-key | ||
| 29 | (ecc | ||
| 30 | (curve Ed25519) | ||
| 31 | (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))")) | ||
| 32 | |||
| 33 | (define %channels | ||
| 34 | (cons* (channel | ||
| 35 | (name 'nonguix) | ||
| 36 | (url "https://gitlab.com/nonguix/nonguix") | ||
| 37 | ;; Enable signature verification: | ||
| 38 | (introduction | ||
| 39 | (make-channel-introduction | ||
| 40 | "897c1a470da759236cc11798f4e0a5f7d4d59fbc" | ||
| 41 | (openpgp-fingerprint | ||
| 42 | "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5")))) | ||
| 43 | %default-channels)) | ||
| 44 | |||
| 45 | (define installation-os-nonfree | 21 | (define installation-os-nonfree |
| 46 | (operating-system | 22 | ((compose (nonguix-transformation-guix #:guix-source? #t) |
| 47 | (inherit installation-os) | 23 | ;; FIXME: ‘microcode-initrd’ results in unbootable live system. |
| 48 | (kernel linux) | 24 | (nonguix-transformation-linux #:initrd base-initrd)) |
| 49 | (firmware (list linux-firmware)) | 25 | (operating-system |
| 50 | (packages | 26 | (inherit installation-os) |
| 27 | (packages | ||
| 51 | (append | 28 | (append |
| 52 | (list curl | 29 | (list curl |
| 53 | git | 30 | git |
| 54 | neovim | 31 | neovim |
| 55 | zile) | 32 | zile) |
| 56 | (operating-system-packages installation-os))) | 33 | (operating-system-packages installation-os)))))) |
| 57 | (services | ||
| 58 | (modify-services (operating-system-user-services installation-os) | ||
| 59 | (guix-service-type | ||
| 60 | config => (guix-configuration | ||
| 61 | (inherit config) | ||
| 62 | (guix (guix-for-channels %channels)) | ||
| 63 | (authorized-keys | ||
| 64 | (cons* %signing-key | ||
| 65 | %default-authorized-guix-keys)) | ||
| 66 | (substitute-urls | ||
| 67 | `(,@%default-substitute-urls | ||
| 68 | "https://substitutes.nonguix.org")) | ||
| 69 | (channels %channels))))))) | ||
| 70 | 34 | ||
| 71 | installation-os-nonfree | 35 | installation-os-nonfree |
