record.scm 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 record)
  19. #:use-module (guix records)
  20. #:use-module (srfi srfi-1)
  21. #:export (<installer>
  22. installer
  23. make-installer
  24. installer?
  25. installer-name
  26. installer-init
  27. installer-exit
  28. installer-exit-error
  29. installer-final-page
  30. installer-keymap-page
  31. installer-locale-page
  32. installer-menu-page
  33. installer-network-page
  34. installer-timezone-page
  35. installer-hostname-page
  36. installer-user-page
  37. installer-partition-page
  38. installer-services-page
  39. installer-welcome-page))
  40. ;;;
  41. ;;; Installer record.
  42. ;;;
  43. ;; The <installer> record contains pages that will be run to prompt the user
  44. ;; for the system configuration. The goal of the installer is to produce a
  45. ;; complete <operating-system> record and install it.
  46. (define-record-type* <installer>
  47. installer make-installer
  48. installer?
  49. ;; symbol
  50. (name installer-name)
  51. ;; procedure: void -> void
  52. (init installer-init)
  53. ;; procedure: void -> void
  54. (exit installer-exit)
  55. ;; procedure (key arguments) -> void
  56. (exit-error installer-exit-error)
  57. ;; procedure void -> void
  58. (final-page installer-final-page)
  59. ;; procedure (layouts) -> (list layout variant)
  60. (keymap-page installer-keymap-page)
  61. ;; procedure: (#:key supported-locales iso639-languages iso3166-territories)
  62. ;; -> glibc-locale
  63. (locale-page installer-locale-page)
  64. ;; procedure: (steps) -> step-id
  65. (menu-page installer-menu-page)
  66. ;; procedure void -> void
  67. (network-page installer-network-page)
  68. ;; procedure (zonetab) -> posix-timezone
  69. (timezone-page installer-timezone-page)
  70. ;; procedure void -> void
  71. (hostname-page installer-hostname-page)
  72. ;; procedure void -> void
  73. (user-page installer-user-page)
  74. ;; procedure void -> void
  75. (partition-page installer-partition-page)
  76. ;; procedure void -> void
  77. (services-page installer-services-page)
  78. ;; procedure (logo) -> void
  79. (welcome-page installer-welcome-page))