record.scm 3.3 KB

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