novena.scm 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2020 Mathieu Othacehe <m.othacehe@gmail.com>
  3. ;;; Copyright © 2020 Danny Milosavljevic <dannym@scratchpost.org>
  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 system images novena)
  20. #:use-module (gnu bootloader)
  21. #:use-module (gnu bootloader u-boot)
  22. #:use-module (gnu image)
  23. #:use-module (gnu packages linux)
  24. #:use-module (gnu services)
  25. #:use-module (gnu services base)
  26. #:use-module (gnu system)
  27. #:use-module (gnu system file-systems)
  28. #:use-module (gnu system image)
  29. #:use-module (srfi srfi-26)
  30. #:export (novena-barebones-os
  31. novena-image-type
  32. novena-barebones-raw-image))
  33. (define novena-barebones-os
  34. (operating-system
  35. (host-name "vignemale")
  36. (timezone "Europe/Paris")
  37. (locale "en_US.utf8")
  38. (bootloader (bootloader-configuration
  39. (bootloader u-boot-novena-bootloader)
  40. (target "/dev/vda")))
  41. (initrd-modules '("sdhci-esdhc-imx" "ahci_imx" "i2c-dev"))
  42. ;(kernel linux-libre-arm-generic)
  43. (kernel-arguments '("console=ttymxc1,115200"))
  44. (file-systems (cons (file-system
  45. (device (file-system-label "my-root"))
  46. (mount-point "/")
  47. (type "ext4"))
  48. %base-file-systems))))
  49. (define novena-image-type
  50. (image-type
  51. (name 'novena-raw)
  52. (constructor (cut image-with-os (arm32-disk-image) <>))))
  53. (define novena-barebones-raw-image
  54. (image
  55. (inherit
  56. (os->image novena-barebones-os #:type novena-image-type))
  57. (name 'novena-barebones-raw-image)))
  58. ;; Return the default image.
  59. novena-barebones-raw-image