installer: Add services page.
[jackhill/guix/guix.git] / gnu / installer / record.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
3 ;;;
4 ;;; This file is part of GNU Guix.
5 ;;;
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
10 ;;;
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19 (define-module (gnu installer record)
20 #:use-module (guix records)
21 #:use-module (srfi srfi-1)
22 #:export (<installer>
23 installer
24 make-installer
25 installer?
26 installer-name
27 installer-init
28 installer-exit
29 installer-exit-error
30 installer-final-page
31 installer-keymap-page
32 installer-locale-page
33 installer-menu-page
34 installer-network-page
35 installer-timezone-page
36 installer-hostname-page
37 installer-user-page
38 installer-services-page
39 installer-welcome-page))
40
41 \f
42 ;;;
43 ;;; Installer record.
44 ;;;
45
46 ;; The <installer> record contains pages that will be run to prompt the user
47 ;; for the system configuration. The goal of the installer is to produce a
48 ;; complete <operating-system> record and install it.
49
50 (define-record-type* <installer>
51 installer make-installer
52 installer?
53 ;; symbol
54 (name installer-name)
55 ;; procedure: void -> void
56 (init installer-init)
57 ;; procedure: void -> void
58 (exit installer-exit)
59 ;; procedure (key arguments) -> void
60 (exit-error installer-exit-error)
61 ;; procedure void -> void
62 (final-page installer-final-page)
63 ;; procedure (layouts) -> (list layout variant)
64 (keymap-page installer-keymap-page)
65 ;; procedure: (#:key supported-locales iso639-languages iso3166-territories)
66 ;; -> glibc-locale
67 (locale-page installer-locale-page)
68 ;; procedure: (steps) -> step-id
69 (menu-page installer-menu-page)
70 ;; procedure void -> void
71 (network-page installer-network-page)
72 ;; procedure (zonetab) -> posix-timezone
73 (timezone-page installer-timezone-page)
74 ;; procedure void -> void
75 (hostname-page installer-hostname-page)
76 ;; procedure void -> void
77 (user-page installer-user-page)
78 ;; procedure void -> void
79 (services-page installer-services-page)
80 ;; procedure (logo) -> void
81 (welcome-page installer-welcome-page))