services.scm 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. (define-module (gnu installer newt services)
  19. #:use-module (gnu installer services)
  20. #:use-module (gnu installer steps)
  21. #:use-module (gnu installer newt page)
  22. #:use-module (gnu installer newt utils)
  23. #:use-module (guix i18n)
  24. #:use-module (srfi srfi-34)
  25. #:use-module (srfi srfi-35)
  26. #:use-module (newt)
  27. #:export (run-services-page))
  28. (define (run-desktop-environments-cbt-page)
  29. "Run a page allowing the user to choose between various desktop
  30. environments."
  31. (run-checkbox-tree-page
  32. #:info-text (G_ "Please select the desktop(s) environment(s) you wish to \
  33. install. If you select multiple desktops environments, we will be able to \
  34. choose the one to use on the log-in screen with F1.")
  35. #:title (G_ "Desktop environment")
  36. #:items %desktop-environments
  37. #:item->text desktop-environment-name
  38. #:checkbox-tree-height 5
  39. #:exit-button-callback-procedure
  40. (lambda ()
  41. (raise
  42. (condition
  43. (&installer-step-abort))))))
  44. (define (run-services-page)
  45. (run-desktop-environments-cbt-page))