1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
4 ;;; This file is part of GNU Guix.
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.
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.
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/>.
19 (define-module (gnu installer newt)
20 #:use-module (gnu installer)
21 #:use-module (guix discovery)
22 #:use-module (guix gexp)
23 #:use-module (guix ui)
24 #:export (newt-installer))
29 (dirname (search-path %load-path "guix.scm"))
30 "gnu/installer/newt")))
52 #:supported-locales supported-locales
53 #:iso639-languages iso639-languages
54 #:iso3166-territories iso3166-territories)))
58 (run-timezone-page zonetab)))
62 (dirname (search-path %load-path "guix.scm"))
63 "/gnu/installer/aux-files/logo.txt"))
66 #~(run-welcome-page #$(local-file logo)))
70 (run-menu-page steps)))
73 #~(lambda* (#:key models layouts)
74 (run-keymap-page #:models models
81 #~(run-hostname-page))
86 (define newt-installer
92 (exit-error exit-error)
93 (keymap-page keymap-page)
94 (locale-page locale-page)
96 (network-page network-page)
97 (timezone-page timezone-page)
98 (hostname-page hostname-page)
100 (welcome-page welcome-page)))