mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
installer: tests: Expect but do not select other services by default.
* gnu/installer/tests.scm (choose-services): Accept a new choose-other-service? keyword argument, defaulting to false. Expect an "Other services" checkbox-list. Update docstring.
This commit is contained in:
parent
ae004cead8
commit
0dbd2c3b08
2 changed files with 9 additions and 4 deletions
|
@ -220,8 +220,9 @@ (define* (choose-services port
|
|||
(string-contains service "NSS"))))
|
||||
(choose-network-management-tool?
|
||||
(lambda (service)
|
||||
(string-contains service "DHCP"))))
|
||||
"Converse over PORT to choose networking services."
|
||||
(string-contains service "DHCP")))
|
||||
(choose-other-service? (const #f)))
|
||||
"Converse over PORT to choose services."
|
||||
(define desktop-environments '())
|
||||
|
||||
(converse port
|
||||
|
@ -240,7 +241,11 @@ (define desktop-environments '())
|
|||
(multiple-choices? #f)
|
||||
(items ,services))
|
||||
(null? desktop-environments)
|
||||
(find choose-network-management-tool? services))))
|
||||
(find choose-network-management-tool? services))
|
||||
|
||||
((checkbox-list (title "Other services") (text _)
|
||||
(items ,services))
|
||||
(filter choose-other-service? services))))
|
||||
|
||||
(define (edit-configuration-file file)
|
||||
"Edit FILE, an operating system configuration file generated by the
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2017, 2019, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2020 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||
;;; Copyright © 2020 Danny Milosavljevic <dannym@scratchpost.org>
|
||||
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
|
|
Loading…
Reference in a new issue