record.scm 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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-timezone-page
  36. installer-hostname-page
  37. installer-user-page
  38. installer-partition-page
  39. installer-services-page
  40. installer-welcome-page
  41. installer-parameters-menu
  42. installer-parameters-page))
  43. ;;;
  44. ;;; Installer record.
  45. ;;;
  46. ;; The <installer> record contains pages that will be run to prompt the user
  47. ;; for the system configuration. The goal of the installer is to produce a
  48. ;; complete <operating-system> record and install it.
  49. (define-record-type* <installer>
  50. installer make-installer
  51. installer?
  52. ;; symbol
  53. (name installer-name)
  54. ;; procedure: void -> void
  55. (init installer-init)
  56. ;; procedure: void -> void
  57. (exit installer-exit)
  58. ;; procedure (key arguments) -> void
  59. (exit-error installer-exit-error)
  60. ;; procedure void -> void
  61. (final-page installer-final-page)
  62. ;; procedure (layouts context) -> (list layout variant options)
  63. (keymap-page installer-keymap-page)
  64. ;; procedure: (#:key supported-locales iso639-languages iso3166-territories)
  65. ;; -> glibc-locale
  66. (locale-page installer-locale-page)
  67. ;; procedure: (steps) -> step-id
  68. (menu-page installer-menu-page)
  69. ;; procedure void -> void
  70. (network-page installer-network-page)
  71. ;; procedure (zonetab) -> posix-timezone
  72. (timezone-page installer-timezone-page)
  73. ;; procedure void -> void
  74. (hostname-page installer-hostname-page)
  75. ;; procedure void -> void
  76. (user-page installer-user-page)
  77. ;; procedure void -> void
  78. (partition-page installer-partition-page)
  79. ;; procedure void -> void
  80. (services-page installer-services-page)
  81. ;; procedure (logo) -> void
  82. (welcome-page installer-welcome-page)
  83. ;; procedure (menu-proc) -> void
  84. (parameters-menu installer-parameters-menu)
  85. ;; procedure (keyboard-layout-selection) -> void
  86. (parameters-page installer-parameters-page))