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
56 +0100'>2020-02-26daemon: Drop 'AT_STATX_DONT_SYNC' flag upon EINVAL....Ludovic Courtès 2020-01-12daemon: Fix the displayed GC estimated progress....Ludovic Courtès 2020-01-12daemon: Account for deleted store files when deduplication is on....Ludovic Courtès 2019-11-29daemon: 'pathExists' uses 'statx' when available....Ludovic Courtès 2019-11-27daemon: 'deletePath' uses 'statx' when available....Ludovic Courtès 2019-11-27daemon: GC remove-unused-links phase uses 'statx' when available....Ludovic Courtès 2019-11-26daemon: boost::format: Fix typo "referred"....Vagrant Cascadian 2019-11-26guix build, daemon: Rename "--no-build-hook" to "--no-offload"....Ludovic Courtès 2019-11-22daemon: GC displays how much it has collected....Ludovic Courtès 2019-11-13daemon: Don't include <linux/fs.h>....Ludovic Courtès 2019-11-04daemon: Unregister build hook from the worker's children upon build failure....Ludovic Courtès 2019-10-16daemon: Make 'profiles/per-user' non-world-writable....Ludovic Courtès 2019-10-16daemon: Remove traces of 'NIX_ROOT_FINDER'....Ludovic Courtès 2019-09-28daemon: Strictly respect timeouts for 'guix offload'....Ludovic Courtès 2019-09-16daemon: Include 'config.h' in 'nix-daemon.cc'....Timothy Sample 2019-09-08daemon: Remove 'NIX_LIBEXEC_DIR'....Ludovic Courtès 2019-09-08daemon: Run 'guix substitute' directly and assume a single substituter....Ludovic Courtès 2019-09-08daemon: Run 'guix offload' directly....Ludovic Courtès 2019-09-08daemon: Run 'guix perform-download' directly....Ludovic Courtès 2019-09-08daemon: Run 'guix authenticate' directly....Ludovic Courtès 2019-09-08daemon: Invoke 'guix gc --list-busy' instead of 'list-runtime-roots'....Ludovic Courtès 2019-08-30daemon: Don't reply on 'st_blocks'....Eelco Dolstra 2019-06-13daemon: Replace "illegal" by "invalid" in error messages....Ludovic Courtès 2019-03-13Remove traces of "GuixSD"....Ludovic Courtès 2019-02-06daemon: Emit a 'build-succeeded' event in check mode....Ludovic Courtès 2019-02-04daemon: Add "/guix" to default 'nixLibexecDir'....Ludovic Courtès 2019-02-04daemon: Remove the 'NIX_SUBSTITUTERS' environment variable....Ludovic Courtès 2019-02-04daemon: Remove unused 'NIX_DATA_DIR' environment variable....Ludovic Courtès 2019-02-04daemon: Rename 'NIX_STATE_DIR' and 'NIX_DB_DIR' environment variables....Ludovic Courtès 2018-12-16daemon: Use unbranded phrases in comments and messages....Ludovic Courtès 2018-11-24daemon: Ignore '--keep-failed' for TCP/IP clients....Ludovic Courtès 2018-11-14daemon: Install 'authenticate' script under LIBEXECDIR/guix....Ludovic Courtès 2018-10-15daemon: Support multiplexed build output....Ludovic Courtès 2018-10-02daemon: Remove unused 'Settings' fields....Ludovic Courtès 2018-10-02daemon: Remove "case hack" for nars....Ludovic Courtès 2018-09-27perform-download: Optionally report a "download-progress" trace....Ludovic Courtès 2018-09-27Add (guix status) and use it for pretty colored output....Ludovic Courtès