diff options
| author | Hilton Chain <hako@ultrarare.space> | 2025-06-11 21:51:29 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2025-06-11 22:15:43 +0800 |
| commit | af7b8544dfa40c057e49d2e0878e269ed4c1d339 (patch) | |
| tree | cfaccb87cbd4406694e37d676645de9a0926a20e | |
| parent | fba2af60c9050c3abdc274521fb1211d39fa9ecd (diff) | |
transformations: Add ‘nonguix-transformation-linux’.
* nonguix/transformations.scm (nonguix-transformation-linux): New procedure.
| -rw-r--r-- | nonguix/transformations.scm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/nonguix/transformations.scm b/nonguix/transformations.scm index ea38127..751c6cf 100644 --- a/nonguix/transformations.scm +++ b/nonguix/transformations.scm | |||
| @@ -15,7 +15,8 @@ | |||
| 15 | #:use-module (gnu packages package-management) | 15 | #:use-module (gnu packages package-management) |
| 16 | #:use-module (nongnu packages linux) | 16 | #:use-module (nongnu packages linux) |
| 17 | #:use-module (nongnu packages nvidia) | 17 | #:use-module (nongnu packages nvidia) |
| 18 | #:export (nonguix-transformation-guix)) | 18 | #:export (nonguix-transformation-guix |
| 19 | nonguix-transformation-linux)) | ||
| 19 | 20 | ||
| 20 | (define* (nonguix-transformation-guix #:key (substitutes? #t) | 21 | (define* (nonguix-transformation-guix #:key (substitutes? #t) |
| 21 | (channel? #t) | 22 | (channel? #t) |
| @@ -75,3 +76,16 @@ FIXME: GUIX-SOURCE? is disabled by default due to performance issue." | |||
| 75 | ,@(if substitutes? | 76 | ,@(if substitutes? |
| 76 | '("https://substitutes.nonguix.org") | 77 | '("https://substitutes.nonguix.org") |
| 77 | '())))))))))) | 78 | '())))))))))) |
| 79 | |||
| 80 | (define* (nonguix-transformation-linux #:key (linux linux) | ||
| 81 | (firmware (list linux-firmware)) | ||
| 82 | (initrd microcode-initrd)) | ||
| 83 | "Return a procedure that transforms an operating system, setting up | ||
| 84 | LINUX (default: linux) kernel, with FIRMWARE (default: (list linux-firmware)) | ||
| 85 | and INITRD (default: microcode-initrd)." | ||
| 86 | (lambda (os) | ||
| 87 | (operating-system | ||
| 88 | (inherit os) | ||
| 89 | (kernel linux) | ||
| 90 | (firmware firmware) | ||
| 91 | (initrd initrd)))) | ||
