services: fprintd: Provide polkit policy.
[jackhill/guix/guix.git] / gnu / system / install.scm
CommitLineData
fc91c17a 1;;; GNU Guix --- Functional package management for GNU
5c215c9e 2;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
b2a5fa59 3;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
f0fbf2c1 4;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
c80cd4df 5;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
fdfdecdb 6;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
fc91c17a
LC
7;;;
8;;; This file is part of GNU Guix.
9;;;
10;;; GNU Guix is free software; you can redistribute it and/or modify it
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
15;;; GNU Guix is distributed in the hope that it will be useful, but
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23(define-module (gnu system install)
24 #:use-module (gnu)
d0f3a672 25 #:use-module (gnu system)
ceb39527 26 #:use-module (gnu bootloader u-boot)
fc91c17a 27 #:use-module (guix gexp)
e87f0591 28 #:use-module (guix store)
fc91c17a 29 #:use-module (guix monads)
0134ebc5 30 #:use-module ((guix packages) #:select (package-version))
83a17b62 31 #:use-module ((guix store) #:select (%store-prefix))
a49d633c 32 #:use-module (gnu installer)
d0f3a672
MO
33 #:use-module (gnu services dbus)
34 #:use-module (gnu services networking)
0190c1c0 35 #:use-module (gnu services shepherd)
c80cd4df 36 #:use-module (gnu services ssh)
db84467a 37 #:use-module (gnu packages admin)
f4bdfe73 38 #:use-module (gnu packages bash)
862e38d5 39 #:use-module (gnu packages bootloaders)
9ce09a76 40 #:use-module (gnu packages certs)
d0f3a672
MO
41 #:use-module (gnu packages fonts)
42 #:use-module (gnu packages fontutils)
af4a761e 43 #:use-module (gnu packages guile)
fc91c17a 44 #:use-module (gnu packages linux)
1e8d398a 45 #:use-module (gnu packages ssh)
b419c7f5 46 #:use-module (gnu packages cryptsetup)
fc91c17a 47 #:use-module (gnu packages package-management)
cc4a2aeb 48 #:use-module (gnu packages disk)
fc91c17a 49 #:use-module (gnu packages texinfo)
dd6b28d1 50 #:use-module (gnu packages compression)
a8cb87ab 51 #:use-module (gnu packages nvi)
e1fbc32a
LC
52 #:use-module (ice-9 match)
53 #:use-module (srfi srfi-26)
ceb39527 54 #:export (installation-os
c55c6985 55 a20-olinuxino-lime-installation-os
4b9e9abb 56 a20-olinuxino-lime2-emmc-installation-os
a7bb327e 57 a20-olinuxino-micro-installation-os
e830c9d0 58 bananapi-m2-ultra-installation-os
84ee3378 59 beaglebone-black-installation-os
07ca9045 60 mx6cuboxi-installation-os
fd5536e3 61 nintendo-nes-classic-edition-installation-os
1b960787 62 novena-installation-os
9f7d6665 63 pine64-plus-installation-os
74e35e8c 64 pinebook-installation-os
6fe16577 65 rk3399-puma-installation-os
4ce4fc50
DM
66 wandboard-installation-os
67 os-with-u-boot))
fc91c17a
LC
68
69;;; Commentary:
70;;;
71;;; This module provides an 'operating-system' definition for use on images
72;;; for USB sticks etc., for the installation of the GNU system.
73;;;
74;;; Code:
75
9d3fb6c7 76\f
126d4c12
LC
77;;;
78;;; Documentation service.
79;;;
80
c7dc6042
LC
81(define %installation-node-names
82 ;; Translated name of the "System Installation" node of the manual. Ideally
83 ;; we'd extract it from the 'guix-manual' gettext domain, but that one is
84 ;; usually not available at run time, hence this hack.
85 '(("de" . "Systeminstallation")
86 ("en" . "System Installation")
87 ("fr" . "Installation du système")))
88
126d4c12 89(define (log-to-info tty user)
fc91c17a
LC
90 "Return a script that spawns the Info reader on the right section of the
91manual."
ce8a6dfc 92 (program-file "log-to-info"
c7dc6042
LC
93 #~(let* ((tty (open-file #$(string-append "/dev/" tty)
94 "r0+"))
95 (locale (cadr (command-line)))
96 (language (string-take locale
97 (string-index locale #\_)))
98 (infodir "/run/current-system/profile/share/info")
99 (per-lang (string-append infodir "/guix." language
100 ".info.gz"))
101 (file (if (file-exists? per-lang)
102 per-lang
103 (string-append infodir "/guix.info")))
104 (node (or (assoc-ref '#$%installation-node-names
105 language)
106 "System Installation")))
126d4c12
LC
107 (redirect-port tty (current-output-port))
108 (redirect-port tty (current-error-port))
109 (redirect-port tty (current-input-port))
110
111 (let ((pw (getpwnam #$user)))
112 (setgid (passwd:gid pw))
113 (setuid (passwd:uid pw)))
114
dd6b28d1
LC
115 ;; 'gunzip' is needed to decompress the doc.
116 (setenv "PATH" (string-append #$gzip "/bin"))
117
c7dc6042
LC
118 ;; Change this process' locale so that command-line
119 ;; arguments to 'info' are properly encoded.
120 (catch #t
121 (lambda ()
122 (setlocale LC_ALL locale)
123 (setenv "LC_ALL" locale))
124 (lambda _
125 ;; Sometimes LOCALE itself is not available. In that
126 ;; case pick the one UTF-8 locale that's known to work
127 ;; instead of failing.
128 (setlocale LC_ALL "en_US.utf8")
129 (setenv "LC_ALL" "en_US.utf8")))
130
131 (execl #$(file-append info-reader "/bin/info")
132 "info" "-d" infodir "-f" file "-n" node))))
fc91c17a 133
126d4c12
LC
134(define (documentation-shepherd-service tty)
135 (list (shepherd-service
136 (provision (list (symbol-append 'term- (string->symbol tty))))
137 (requirement '(user-processes host-name udev virtual-terminal))
c7dc6042
LC
138 (start #~(lambda* (#:optional (locale "en_US.utf8"))
139 (fork+exec-command
140 (list #$(log-to-info tty "documentation") locale)
141 #:environment-variables
142 `("GUIX_LOCPATH=/run/current-system/locale"
143 "TERM=linux"))))
126d4c12
LC
144 (stop #~(make-kill-destructor)))))
145
146(define %documentation-users
147 ;; User account for the Info viewer.
148 (list (user-account (name "documentation")
149 (system? #t)
150 (group "nogroup")
151 (home-directory "/var/empty"))))
152
153(define documentation-service-type
154 ;; Documentation viewer service.
155 (service-type (name 'documentation)
156 (extensions
157 (list (service-extension shepherd-root-service-type
158 documentation-shepherd-service)
159 (service-extension account-service-type
160 (const %documentation-users))))
161 (description "Run the Info reader on a tty.")))
162
163\f
83a17b62
LC
164(define %backing-directory
165 ;; Sub-directory used as the backing store for copy-on-write.
166 "/tmp/guix-inst")
167
168(define (make-cow-store target)
169 "Return a gexp that makes the store copy-on-write, using TARGET as the
170backing store. This is useful when TARGET is on a hard disk, whereas the
171current store is on a RAM disk."
83a17b62
LC
172
173 (define (set-store-permissions directory)
174 ;; Set the right perms on DIRECTORY to use it as the store.
175 #~(begin
176 (chown #$directory 0 30000) ;use the fixed 'guixbuild' GID
177 (chmod #$directory #o1775)))
178
179 #~(begin
0adabad7
LC
180 ;; Bind-mount TARGET's /tmp in case we need space to build things.
181 (let ((tmpdir (string-append #$target "/tmp")))
182 (mkdir-p tmpdir)
183 (mount tmpdir "/tmp" "none" MS_BIND))
184
d9565f7d
HG
185 (let* ((rw-dir (string-append target #$%backing-directory))
186 (work-dir (string-append rw-dir "/../.overlayfs-workdir")))
83a17b62 187 (mkdir-p rw-dir)
d9565f7d 188 (mkdir-p work-dir)
83a17b62
LC
189 (mkdir-p "/.rw-store")
190 #$(set-store-permissions #~rw-dir)
191 #$(set-store-permissions "/.rw-store")
192
d9565f7d
HG
193 ;; Mount the overlay, then atomically make it the store.
194 (mount "none" "/.rw-store" "overlay" 0
195 (string-append "lowerdir=" #$(%store-prefix) ","
196 "upperdir=" rw-dir ","
197 "workdir=" work-dir))
198 (mount "/.rw-store" #$(%store-prefix) "" MS_MOVE)
199 (rmdir "/.rw-store"))))
83a17b62 200
0adfe95a 201(define cow-store-service-type
d4053c71 202 (shepherd-service-type
00184239 203 'cow-store
0adfe95a 204 (lambda _
d4053c71 205 (shepherd-service
0adfe95a
LC
206 (requirement '(root-file-system user-processes))
207 (provision '(cow-store))
208 (documentation
209 "Make the store copy-on-write, with writes going to \
210the given target.")
211
212 ;; This is meant to be explicitly started by the user.
213 (auto-start? #f)
214
215 (start #~(case-lambda
216 ((target)
217 #$(make-cow-store #~target)
218 target)
219 (else
220 ;; Do nothing, and mark the service as stopped.
221 #f)))
222 (stop #~(lambda (target)
223 ;; Delete the temporary directory, but leave everything
224 ;; mounted as there may still be processes using it since
6c445817 225 ;; 'user-processes' doesn't depend on us. The 'user-file-systems'
0adfe95a
LC
226 ;; service will unmount TARGET eventually.
227 (delete-file-recursively
228 (string-append target #$%backing-directory))))))))
229
83a17b62
LC
230(define (cow-store-service)
231 "Return a service that makes the store copy-on-write, such that writes go to
232the user's target storage device rather than on the RAM disk."
233 ;; See <http://bugs.gnu.org/18061> for the initial report.
0adfe95a
LC
234 (service cow-store-service-type 'mooooh!))
235
236
237(define (/etc/configuration-files _)
238 "Return a list of tuples representing configuration templates to add to
239/etc."
240 (define (file f)
bae90dc7 241 (local-file (string-append "examples/" f)))
0adfe95a
LC
242
243 (define directory
244 (computed-file "configuration-templates"
4ee96a79
LC
245 (with-imported-modules '((guix build utils))
246 #~(begin
247 (mkdir #$output)
248 (for-each (lambda (file target)
249 (copy-file file
250 (string-append #$output "/"
251 target)))
252 '(#$(file "bare-bones.tmpl")
9f1e39d1 253 #$(file "beaglebone-black.tmpl")
4ee96a79
LC
254 #$(file "desktop.tmpl")
255 #$(file "lightweight-desktop.tmpl"))
256 '("bare-bones.scm"
9f1e39d1 257 "beaglebone-black.scm"
4ee96a79
LC
258 "desktop.scm"
259 "lightweight-desktop.scm"))
260 #t))))
0adfe95a
LC
261
262 `(("configuration" ,directory)))
263
264(define configuration-template-service-type
265 (service-type (name 'configuration-template)
266 (extensions
267 (list (service-extension etc-service-type
268 /etc/configuration-files)))))
269
270(define %configuration-template-service
271 (service configuration-template-service-type #t))
be1c2c54 272
1dac8566 273
61ff0a3a
LC
274(define %nscd-minimal-caches
275 ;; Minimal in-memory caching policy for nscd.
276 (list (nscd-cache (database 'hosts)
277 (positive-time-to-live (* 3600 12))
c96ba2cf
LC
278
279 ;; Do not cache lookup failures at all since they are
280 ;; quite likely (for instance when someone tries to ping a
281 ;; host before networking is functional.)
282 (negative-time-to-live 0)
283
61ff0a3a
LC
284 (persistent? #f)
285 (max-database-size (* 5 (expt 2 20)))))) ;5 MiB
286
58b21e1e
LC
287(define %installation-services
288 ;; List of services of the installation system.
a7961746 289 (let ((motd (plain-file "motd" "
6fb6dd13 290\x1b[1;37mWelcome to the installation of GNU Guix!\x1b[0m
a7961746 291
5a663d87
LC
292\x1b[2m\
293Using this shell, you can carry out the installation process \"manually.\"
294Access documentation at any time by pressing Alt-F2.\x1b[0m
a7961746
MO
295")))
296 (define (normal-tty tty)
297 (mingetty-service (mingetty-configuration (tty tty)
298 (auto-login "root")
299 (login-pause? #t))))
300
301 (define bare-bones-os
302 (load "examples/bare-bones.tmpl"))
303
304 (list (service virtual-terminal-service-type)
305
306 (service kmscon-service-type
307 (kmscon-configuration
308 (virtual-terminal "tty1")
a49d633c 309 (login-program (installer-program))))
a7961746
MO
310
311 (login-service (login-configuration
312 (motd motd)))
313
314 ;; Documentation. The manual is in UTF-8, but
315 ;; 'console-font-service' sets up Unicode support and loads a font
316 ;; with all the useful glyphs like em dash and quotation marks.
126d4c12 317 (service documentation-service-type "tty2")
a7961746
MO
318
319 ;; Documentation add-on.
320 %configuration-template-service
321
322 ;; A bunch of 'root' ttys.
323 (normal-tty "tty3")
324 (normal-tty "tty4")
325 (normal-tty "tty5")
326 (normal-tty "tty6")
327
328 ;; The usual services.
329 (syslog-service)
330
331 ;; The build daemon. Register the hydra.gnu.org key as trusted.
332 ;; This allows the installation process to use substitutes by
333 ;; default.
334 (service guix-service-type
335 (guix-configuration (authorize-key? #t)))
336
337 ;; Start udev so that useful device nodes are available.
338 ;; Use device-mapper rules for cryptsetup & co; enable the CRDA for
339 ;; regulations-compliant WiFi access.
340 (udev-service #:rules (list lvm2 crda))
341
342 ;; Add the 'cow-store' service, which users have to start manually
343 ;; since it takes the installation directory as an argument.
344 (cow-store-service)
345
13fd0a30 346 ;; Install Unicode support and a suitable font.
a7961746 347 (service console-font-service-type
13fd0a30
LC
348 (map (match-lambda
349 ("tty2"
350 ;; Use a font that contains characters such as
351 ;; curly quotes as found in the manual.
352 '("tty2" . "LatGrkCyr-8x16"))
353 (tty
354 ;; Use a font that doesn't have more than 256
355 ;; glyphs so that we can use colors with varying
356 ;; brightness levels (see note in setfont(8)).
357 `(,tty . "lat9u-16")))
a7961746
MO
358 '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6")))
359
360 ;; To facilitate copy/paste.
361 (service gpm-service-type)
362
363 ;; Add an SSH server to facilitate remote installs.
364 (service openssh-service-type
365 (openssh-configuration
366 (port-number 22)
367 (permit-root-login #t)
368 ;; The root account is passwordless, so make sure
369 ;; a password is set before allowing logins.
370 (allow-empty-passwords? #f)
371 (password-authentication? #t)
372
373 ;; Don't start it upfront.
374 (%auto-start? #f)))
375
376 ;; Since this is running on a USB stick with a overlayfs as the root
377 ;; file system, use an appropriate cache configuration.
378 (nscd-service (nscd-configuration
379 (caches %nscd-minimal-caches)))
380
381 ;; Having /bin/sh is a good idea. In particular it allows Tramp
382 ;; connections to this system to work.
383 (service special-files-service-type
384 `(("/bin/sh" ,(file-append (canonical-package bash)
385 "/bin/sh"))))
386
387 ;; Loopback device, needed by OpenSSH notably.
388 (service static-networking-service-type
389 (list (static-networking (interface "lo")
390 (ip "127.0.0.1")
391 (requirement '())
392 (provision '(loopback)))))
393
394 (service wpa-supplicant-service-type)
395 (dbus-service)
396 (service connman-service-type
397 (connman-configuration
398 (disable-vpn? #t)))
399
400 ;; Keep a reference to BARE-BONES-OS to make sure it can be
401 ;; installed without downloading/building anything. Also keep the
402 ;; things needed by 'profile-derivation' to minimize the amount of
403 ;; download.
404 (service gc-root-service-type
405 (list bare-bones-os
406 glibc-utf8-locales
407 texinfo
408 (canonical-package guile-2.2))))))
fc91c17a
LC
409
410(define %issue
411 ;; Greeting.
412 "
8638362f 413\x1b[1;37mThis is an installation image of the GNU system. Welcome.\x1b[0m
fc91c17a 414
8638362f 415\x1b[1;33mUse Alt-F2 for documentation.\x1b[0m
fc91c17a
LC
416")
417
418(define installation-os
419 ;; The operating system used on installation images for USB sticks etc.
420 (operating-system
421 (host-name "gnu")
422 (timezone "Europe/Paris")
9cd0dfaa 423 (locale "en_US.utf8")
fdfdecdb
TGR
424 (bootloader (bootloader-configuration
425 (bootloader grub-bootloader)
426 (target "/dev/sda")))
0134ebc5
LC
427 (label (string-append "GNU Guix installation "
428 (package-version guix)))
429
78591912
LC
430 ;; XXX: The AMD Radeon driver is reportedly broken, which makes kmscon
431 ;; non-functional:
432 ;; <https://lists.gnu.org/archive/html/guix-devel/2019-03/msg00441.html>.
433 ;; Thus, blacklist it.
519177ad 434 (kernel-arguments '("quiet" "modprobe.blacklist=radeon"))
78591912 435
fc91c17a
LC
436 (file-systems
437 ;; Note: the disk image build code overrides this root file system with
438 ;; the appropriate one.
ee03b75d
LC
439 (cons* (file-system
440 (mount-point "/")
59e80445 441 (device (file-system-label "Guix_image"))
ee03b75d
LC
442 (type "ext4"))
443
d9565f7d
HG
444 ;; Make /tmp a tmpfs instead of keeping the overlayfs. This
445 ;; originally was used for unionfs because FUSE creates
446 ;; '.fuse_hiddenXYZ' files for each open file, and this confuses
447 ;; Guix's test suite, for instance (see
448 ;; <http://bugs.gnu.org/23056>). We keep this for overlayfs to be
795ec760 449 ;; on the safe side.
ee03b75d
LC
450 (file-system
451 (mount-point "/tmp")
452 (device "none")
ee03b75d
LC
453 (type "tmpfs")
454 (check? #f))
455
0feefb53
LC
456 ;; XXX: This should be %BASE-FILE-SYSTEMS but we don't need
457 ;; elogind's cgroup file systems.
458 (list %pseudo-terminal-file-system
459 %shared-memory-file-system
460 %immutable-store)))
fc91c17a 461
a7961746
MO
462 (users (list (user-account
463 (name "guest")
464 (group "users")
465 (supplementary-groups '("wheel")) ; allow use of sudo
466 (password "")
cf848cc0 467 (comment "Guest of GNU"))))
fc91c17a
LC
468
469 (issue %issue)
58b21e1e 470 (services %installation-services)
fc91c17a 471
903ae630
LC
472 ;; We don't need setuid programs, except for 'passwd', which can be handy
473 ;; if one is to allow remote SSH login to the machine being installed.
474 (setuid-programs (list (file-append shadow "/bin/passwd")))
fc91c17a
LC
475
476 (pam-services
477 ;; Explicitly allow for empty passwords.
478 (base-pam-services #:allow-empty-passwords? #t))
479
a6312f1d 480 (packages (cons* (canonical-package glibc) ;for 'tzselect' & co.
72524ae8 481 parted gptfdisk ddrescue
d0f3a672
MO
482 fontconfig
483 font-dejavu font-gnu-unifont
7eda0c56 484 grub ;mostly so xrefs to its manual work
b419c7f5 485 cryptsetup
f0fbf2c1 486 mdadm
f731529e 487 dosfstools ;mkfs.fat, for the UEFI boot partition
3a9cfba8 488 btrfs-progs
1e8d398a 489 openssh ;we already have sshd, having ssh/scp can help
1ce6f43a 490 wireless-tools iw wpa-supplicant-minimal iproute
8f297d42
LC
491 ;; XXX: We used to have GNU fdisk here, but as of version
492 ;; 2.0.0a, that pulls Guile 1.8, which takes unreasonable
493 ;; space; furthermore util-linux's fdisk is already
494 ;; available here, so we keep that.
f4bdfe73 495 bash-completion
a8cb87ab 496 nvi ;:wq!
0b767e3d 497 nss-certs ; To access HTTPS, use git, etc.
6f436c54 498 %base-packages))))
fc91c17a 499
4ce4fc50
DM
500(define* (os-with-u-boot os board #:key (bootloader-target "/dev/mmcblk0")
501 (triplet "arm-linux-gnueabihf"))
502 "Given OS, amend it with the u-boot bootloader for BOARD,
503installed to BOOTLOADER-TARGET (a drive), compiled for TRIPLET.
504
505If you want a serial console, make sure to specify one in your
506operating-system's kernel-arguments (\"console=ttyS0\" or similar)."
507 (operating-system (inherit os)
508 (bootloader (bootloader-configuration
509 (bootloader (bootloader (inherit u-boot-bootloader)
510 (package (make-u-boot-package board triplet))))
511 (target bootloader-target)))))
512
fccdc8c8
DM
513(define* (embedded-installation-os bootloader bootloader-target tty
514 #:key (extra-modules '()))
515 "Return an installation os for embedded systems.
516The initrd gets the extra modules EXTRA-MODULES.
517A getty is provided on TTY.
518The bootloader BOOTLOADER is installed to BOOTLOADER-TARGET."
ceb39527
MO
519 (operating-system
520 (inherit installation-os)
521 (bootloader (bootloader-configuration
fccdc8c8
DM
522 (bootloader bootloader)
523 (target bootloader-target)))
ceb39527 524 (kernel linux-libre)
5a9902c8
DM
525 (kernel-arguments
526 (cons (string-append "console=" tty)
527 (operating-system-user-kernel-arguments installation-os)))
bc499b11 528 (initrd-modules (append extra-modules %base-initrd-modules))))
ceb39527 529
fccdc8c8
DM
530(define beaglebone-black-installation-os
531 (embedded-installation-os u-boot-beaglebone-black-bootloader
532 "/dev/sda"
533 "ttyO0"
534 #:extra-modules
535 ;; This module is required to mount the sd card.
536 '("omap_hsmmc")))
537
538
0db22b32 539(define a20-olinuxino-lime-installation-os
c55c6985
DM
540 (embedded-installation-os u-boot-a20-olinuxino-lime-bootloader
541 "/dev/mmcblk0" ; SD card storage
542 "ttyS0"))
543
4b9e9abb 544(define a20-olinuxino-lime2-emmc-installation-os
fccdc8c8
DM
545 (embedded-installation-os u-boot-a20-olinuxino-lime2-bootloader
546 "/dev/mmcblk1" ; eMMC storage
547 "ttyS0"))
a7bb327e
DM
548
549(define a20-olinuxino-micro-installation-os
fccdc8c8
DM
550 (embedded-installation-os u-boot-a20-olinuxino-micro-bootloader
551 "/dev/mmcblk0" ; SD card storage
552 "ttyS0"))
4b9e9abb 553
e830c9d0
DM
554(define bananapi-m2-ultra-installation-os
555 (embedded-installation-os u-boot-bananapi-m2-ultra-bootloader
fccdc8c8
DM
556 "/dev/mmcblk1" ; eMMC storage
557 "ttyS0"))
30aeb846 558
07ca9045
VC
559(define mx6cuboxi-installation-os
560 (embedded-installation-os u-boot-mx6cuboxi-bootloader
561 "/dev/mmcblk0" ; SD card storage
562 "ttymxc0"))
563
1b960787
VC
564(define novena-installation-os
565 (embedded-installation-os u-boot-novena-bootloader
566 "/dev/mmcblk1" ; SD card storage
567 "ttymxc1"))
568
84ee3378
DM
569(define nintendo-nes-classic-edition-installation-os
570 (embedded-installation-os u-boot-nintendo-nes-classic-edition-bootloader
571 "/dev/mmcblk0" ; SD card (solder it yourself)
572 "ttyS0"))
573
9f7d6665
VC
574(define pine64-plus-installation-os
575 (embedded-installation-os u-boot-pine64-plus-bootloader
576 "/dev/mmcblk0" ; SD card storage
577 "ttyS0"))
578
74e35e8c
VC
579(define pinebook-installation-os
580 (embedded-installation-os u-boot-pinebook-bootloader
581 "/dev/mmcblk0" ; SD card storage
582 "ttyS0"))
583
6fe16577
VC
584(define rk3399-puma-installation-os
585 (embedded-installation-os u-boot-puma-rk3399-bootloader
586 "/dev/mmcblk0" ; SD card storage
587 "ttyS0"))
588
fd5536e3
VC
589(define wandboard-installation-os
590 (embedded-installation-os u-boot-wandboard-bootloader
591 "/dev/mmcblk0" ; SD card storage
592 "ttymxc0"))
593
ceb39527 594;; Return the default os here so 'guix system' can consume it directly.
fc91c17a
LC
595installation-os
596
597;;; install.scm ends here