record.scm 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2018, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
  3. ;;; Copyright © 2020 Florian Pelz <pelzflorian@pelzflorian.de>
  4. ;;;
  5. ;;; This file is part of GNU Guix.
  6. ;;;
  7. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  8. ;;; under the terms of the GNU General Public License as published by
  9. ;;; the Free Software Foundation; either version 3 of the License, or (at
  10. ;;; your option) any later version.
  11. ;;;
  12. ;;; GNU Guix is distributed in the hope that it will be useful, but
  13. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;;; GNU General Public License for more details.
  16. ;;;
  17. ;;; You should have received a copy of the GNU General Public License
  18. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  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-substitutes-page
  36. installer-timezone-page
  37. installer-hostname-page
  38. installer-user-page
  39. installer-partition-page
  40. installer-services-page
  41. installer-welcome-page
  42. installer-parameters-menu
  43. installer-parameters-page
  44. installer-dump-page
  45. installer-run-command
  46. installer-report-page))
  47. ;;;
  48. ;;; Installer record.
  49. ;;;
  50. ;; The <installer> record contains pages that will be run to prompt the user
  51. ;; for the system configuration. The goal of the installer is to produce a
  52. ;; complete <operating-system> record and install it.
  53. (define-record-type* <installer>
  54. installer make-installer
  55. installer?
  56. ;; symbol
  57. (name installer-name)
  58. ;; procedure: void -> void
  59. (init installer-init)
  60. ;; procedure: void -> void
  61. (exit installer-exit)
  62. ;; procedure (key arguments) -> (action)
  63. (exit-error installer-exit-error)
  64. ;; procedure void -> void
  65. (final-page installer-final-page)
  66. ;; procedure (layouts context) -> (list layout variant options)
  67. (keymap-page installer-keymap-page)
  68. ;; procedure: (#:key supported-locales iso639-languages iso3166-territories)
  69. ;; -> glibc-locale
  70. (locale-page installer-locale-page)
  71. ;; procedure: (steps) -> step-id
  72. (menu-page installer-menu-page)
  73. ;; procedure void -> void
  74. (network-page installer-network-page)
  75. ;; procedure void -> void
  76. (substitutes-page installer-substitutes-page)
  77. ;; procedure (zonetab) -> posix-timezone
  78. (timezone-page installer-timezone-page)
  79. ;; procedure void -> void
  80. (hostname-page installer-hostname-page)
  81. ;; procedure void -> void
  82. (user-page installer-user-page)
  83. ;; procedure void -> void
  84. (partition-page installer-partition-page)
  85. ;; procedure void -> void
  86. (services-page installer-services-page)
  87. ;; procedure (logo #:pci-database) -> void
  88. (welcome-page installer-welcome-page)
  89. ;; procedure (menu-proc) -> void
  90. (parameters-menu installer-parameters-menu)
  91. ;; procedure (keyboard-layout-selection) -> void
  92. (parameters-page installer-parameters-page)
  93. ;; procedure (dump) -> void
  94. (dump-page installer-dump-page)
  95. ;; procedure command -> bool
  96. (run-command installer-run-command)
  97. ;; procedure (report) -> void
  98. (report-page installer-report-page))