unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 279620b0fb871f5d9d4094a4b37e807d99f0fa74 3129 bytes (raw)
name: gnu/system/examples/raspberry-pi-64-nfs-root.tmpl 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
 
;; 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 certs
                     linux
                     raspberry-pi
                     ssh)

(define %my-public-key
  (local-file (string-append (getenv "HOME") "/.ssh/id_ecdsa.pub")))

(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 (modify-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* nss-certs
                    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)
                              (authorized-keys
                              `(("pi" ,%my-public-key)))))
                    %base-services))
   (name-service-switch %mdns-host-lookup-nss)))

raspberry-pi-64-nfs-root

debug log:

solving 279620b0fb ...
found 279620b0fb in https://yhetil.org/guix-patches/l6WqHiPe2KyGlSJh6P0GC-HgB2FtQ9KNr64YZNUv581fODPnfdcujxm0cpxYTR6QL9sz85YavhYa9oaerpfhNQn1UMqe8GbGT4GRoYnN_6c=@protonmail.com/
found a1e41e3399 in https://yhetil.org/guix-patches/AFD31F40-6691-4B53-ACA9-7F821D139124@vodafonemail.de/ ||
	https://yhetil.org/guix-patches/53799D56-08BA-401A-BC09-81BA61736AAC@vodafonemail.de/ ||
	https://yhetil.org/guix-patches/19E4796A-B0DB-444F-8773-2E8D3EF6132D@vodafonemail.de/ ||
	https://yhetil.org/guix-patches/125F42BC-E90F-47A5-9997-7E0089AF07BF@vodafonemail.de/

applying [1/2] https://yhetil.org/guix-patches/AFD31F40-6691-4B53-ACA9-7F821D139124@vodafonemail.de/
diff --git a/gnu/system/examples/raspberry-pi-64-nfs-root.tmpl b/gnu/system/examples/raspberry-pi-64-nfs-root.tmpl
new file mode 100644
index 0000000000..a1e41e3399

Checking patch gnu/system/examples/raspberry-pi-64-nfs-root.tmpl...
Applied patch gnu/system/examples/raspberry-pi-64-nfs-root.tmpl cleanly.

skipping https://yhetil.org/guix-patches/53799D56-08BA-401A-BC09-81BA61736AAC@vodafonemail.de/ for a1e41e3399
skipping https://yhetil.org/guix-patches/19E4796A-B0DB-444F-8773-2E8D3EF6132D@vodafonemail.de/ for a1e41e3399
skipping https://yhetil.org/guix-patches/125F42BC-E90F-47A5-9997-7E0089AF07BF@vodafonemail.de/ for a1e41e3399
index at:
100644 a1e41e33990bf8cbad1ef95c9204ae3d7790a61f	gnu/system/examples/raspberry-pi-64-nfs-root.tmpl

applying [2/2] https://yhetil.org/guix-patches/l6WqHiPe2KyGlSJh6P0GC-HgB2FtQ9KNr64YZNUv581fODPnfdcujxm0cpxYTR6QL9sz85YavhYa9oaerpfhNQn1UMqe8GbGT4GRoYnN_6c=@protonmail.com/
index a1e41e3399..279620b0fb 100644

Checking patch gnu/system/examples/raspberry-pi-64-nfs-root.tmpl...
Applied patch gnu/system/examples/raspberry-pi-64-nfs-root.tmpl cleanly.

index at:
100644 279620b0fb871f5d9d4094a4b37e807d99f0fa74	gnu/system/examples/raspberry-pi-64-nfs-root.tmpl

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).