all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob dd933252c5c4d5cce7bf68a6a2bab8f82315e32a 3329 bytes (raw)
name: gnu/system/examples/raspberry-pi-64.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
77
78
 
;; This is an operating-system configuration template of a
;; 64-bit minimal system for a Raspberry Pi with local storage.

;; 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-partition to be mounted as boot/efi in the same way
;; as it is usually expeted on PCs with UEFI firmware.

(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
  (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 (modify-linux #:linux linux-libre-arm64-generic
                         #| It is possible to use a specific defconfig file,
                            for example the "bcmrpi3_defconfig" with the
                            variable shown below.  Unfortunately the kernel
                            build from the linux-libre sources with this
                            defconfig file does not boot.
                            #:extra-version "gnu-bcmrpi3"
                            #:defconfig %bcmrpi3-defconfig
                         |#))
   (initrd-modules '())
   (file-systems (cons* (file-system
                         (mount-point "/")
                         (type "ext4")
                         (device (file-system-label "Guix")))
                        (file-system
                         (mount-point "/boot/efi")
                         (type "vfat")
                         (device (file-system-label "EFI")))
                        %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

debug log:

solving dd933252c5 ...
found dd933252c5 in https://yhetil.org/guix/204332DD-AA02-4A31-9B48-FB3FAB9BD8F3@vodafonemail.de/

applying [1/1] https://yhetil.org/guix/204332DD-AA02-4A31-9B48-FB3FAB9BD8F3@vodafonemail.de/
diff --git a/gnu/system/examples/raspberry-pi-64.tmpl b/gnu/system/examples/raspberry-pi-64.tmpl
new file mode 100644
index 0000000000..dd933252c5

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

index at:
100644 dd933252c5c4d5cce7bf68a6a2bab8f82315e32a	gnu/system/examples/raspberry-pi-64.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.