aboutsummaryrefslogtreecommitdiff
;; -*- mode: scheme; -*-
;; This is an operating-system configuration template of a
;; 64-bit minimal system for a Raspberry Pi with an NFS root file-system.

;; It neither installs firmware nor device-tree files for the Raspberry Pi.
;; It just assumes them to be existing in boot/efi in the same way that some
;; UEFI firmware with ACPI data is usually assumed to be existing on PCs.

;; It expects the boot/efi directory to be served via TFTP and the root
;; file-system to be served via NFS. See the grub-efi-netboot-bootloader
;; description in the manual for more details.

(use-modules (gnu)
             (gnu artwork)
             (gnu system nss))
(use-service-modules admin
                     avahi
                     networking
                     ssh)
(use-package-modules linux
                     raspberry-pi
                     ssh)

(define-public raspberry-pi-64-nfs-root
  (operating-system
    (host-name "raspberrypi-guix")
    (timezone "Europe/Berlin")
    (bootloader (bootloader-configuration
                 (bootloader grub-efi-bootloader-chain-raspi-64)
                 (targets (list "/boot/efi"))
                 (theme (grub-theme
                         (resolution '(1920 . 1080))
                         (image (file-append
                                 %artwork-repository
                                 "/grub/GuixSD-fully-black-16-9.svg"))))))
    (kernel-arguments '("ip=dhcp"))
    (kernel (customize-linux #:linux linux-libre-arm64-generic
                             #:extra-version "arm64-generic-netboot"
                             #:configs '("CONFIG_NFS_SWAP=y"
                                         "CONFIG_USB_USBNET=y"
                                         "CONFIG_USB_LAN78XX=y"
                                         "CONFIG_USB_NET_SMSC95XX=y")))
    (initrd-modules '())
    (file-systems (cons* (file-system
                           (mount-point "/")
                           (type "nfs")
                           (device ":/export/raspberrypi/guix")
                           (options "addr=10.20.30.40,vers=4.1"))
                         %base-file-systems))
    (swap-devices (list (swap-space
                         (target "/run/swapfile"))))
    (users (cons* (user-account
                   (name "pi")
                   (group "users")
                   (supplementary-groups '("wheel" "netdev" "audio" "video"))
                   (home-directory "/home/pi"))
                  %base-user-accounts))
    (packages (cons* openssh
                     %base-packages))
    (services (cons* (service avahi-service-type)
                     (service dhcp-client-service-type)
                     (service ntp-service-type)
                     (service openssh-service-type
                              (openssh-configuration
                               (x11-forwarding? #t)))
                     %base-services))
    (name-service-switch %mdns-host-lookup-nss)))

raspberry-pi-64-nfs-root
... (go-1.8): New variable. [arguments]: Update substitutions in 'prebuild' phase. (go): Update to go-1.8. Petter 2017-03-21gnu: go@1.4, go@1.7: Skip test that fails with tzdata-2017a....* gnu/packages/golang.scm (go-1.4, go-1.7)[arguments]: Disable the test TestParseInLocation in 'prebuild' phase. Leo Famulari 2017-02-16gnu: go: Update to 1.7.5....* gnu/packages/golang.scm (go-1.7): Update to 1.7.5. [arguments]: Re-enable test 'TestLoadFixed'. Leo Famulari 2016-12-04gnu: Fix header in (gnu packages golang)....* gnu/packages/golang.scm: Replace header line declaring this file as part of GNU Guix. Efraim Flashner 2016-12-02gnu: go-1.7: Update to 1.7.4 [security fixes]....* gnu/packages/golang.scm (go-1.7): Update to 1.7.4. Leo Famulari 2016-10-23Merge branch 'master' into core-updatesMark H Weaver 2016-10-21gnu: go-1.7: Skip test that fails due to time zone name change....* gnu/packages/golang.scm (go-1.7)[arguments]: Skip test "TestLoadFixed" in 'prebuild' phase. Leo Famulari 2016-10-21gnu: go-1.4: Skip test that fails due to time zone name change....* gnu/packages/golang.scm (go-1.4)[arguments]: Skip test "TestLoadFixed" in 'prebuild' phase. Leo Famulari 2016-10-21gnu: go-1.4: Disable cgo....* gnu/packages/golang.scm (go-1.4)[arguments]: Set "CGO_ENABLED=0" while building. (go-1.7)[arguments]: Keep "CGO_ENABLED=1". Leo Famulari 2016-10-21gnu: go-1.7: Update to 1.7.3....* gnu/packages/golang.scm (go-1.7): Update to 1.7.3. Leo Famulari 2016-09-11gnu: go-1.7: Update to 1.7.1....* gnu/packages/golang.scm (go-1.7): Update to 1.7.1. Leo Famulari 2016-09-06gnu: go: Update to 1.7....* gnu/packages/golang.scm (go-1.6): Update to 1.7, with corresponding minor changes to prebuild phase, and rename variable to... (go-1.7): ...this new variable. (go): Inherit from new "go-1.7". Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Petter 2016-08-01gnu: Add Go 1.6....* gnu/packages/golang.scm (go-1.6): New variable. Co-authored-by: Efraim Flashner <efraim@flashner.co.il> Co-authored-by: Andy Wingo <wingo@igalia.com> Co-authored-by: Ludovic Courtès <ludo@gnu.org> Matthew Jordan 2016-06-27gnu: Add Go 1.4....* gnu/local.mk: Modified file. * gnu/packages/golang.scm: New file. Co-authored-by: Efraim Flashner <efraim@flashner.co.il> Co-authored-by: Andy Wingo <wingo@igalia.com> Co-authored-by: Ludovic Courtès <ludo@gnu.org> Matthew Jordan