aboutsummaryrefslogtreecommitdiff
path: root/gnu/system/examples/bare-hurd.tmpl
blob: 9bfa7767692bdb89ea8e22bbe495288c978eaba0 (about) (plain)
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
;; -*-scheme-*-

;; This is an operating system configuration template
;; for a "bare bones" QEMU setup, with no X11 display server.

;; To build a disk image for a virtual machine, do:
;;
;;     ./pre-inst-env guix system image --image-type=hurd-qcow2 \
;;         gnu/system/examples/bare-hurd.tmpl
;;
;; You may run it like so:
;;
;;     guix shell qemu -- qemu-system-i386 -m 2048                \
;;       --enable-kvm                                             \
;;       --device e1000,netdev=net0                               \
;;       --netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222  \
;;       --snapshot
;;       --hda /gnu/store/...-disk-image
;;
;; and use it like:
;;
;;     ssh -p 10022 root@localhost
;;     guix build -e '(@@ (gnu packages commencement) gnu-make-boot0)'
;;
;; or even, if you build the image with at least --image-size=3G:
;;
;;     guix build hello

(use-modules (gnu) (gnu system hurd) (guix utils))
(use-service-modules ssh)
(use-package-modules ssh)

(define %hurd-os
  (operating-system
    (inherit %hurd-default-operating-system)
    (bootloader (bootloader-configuration
                 (bootloader grub-minimal-bootloader)
                 (targets '("/dev/sdX"))))
    (file-systems (cons (file-system
                          (device (file-system-label "hurd"))
                          (mount-point "/")
                          (type "ext2"))
                        %base-file-systems))
    (host-name "guixygnu")
    (timezone "Europe/Amsterdam")
    (users (cons (user-account
                  (name "guix")
                  (comment "Anonymous Hurd Hacker")
                  (group "users")
                  (supplementary-groups '("wheel")))
                 %base-user-accounts))
    (packages (cons openssh-sans-x %base-packages/hurd))
    (services (cons (service openssh-service-type
                             (openssh-configuration
                              (openssh openssh-sans-x)
                              (port-number 2222)
                              (permit-root-login #t)
                              (allow-empty-passwords? #t)
                              (password-authentication? #t)))
                    ;; For installing on a real (non-QEMU) machine, use:
                    ;; (static-networking-service-type
                    ;;   (list %loopback-static-networking
                    ;;        (static-networking
                    ;;         ...)))
                    ;; %base-services/hurd
                    %base-services+qemu-networking/hurd))))

%hurd-os
iable. (rust-asn1-rs-impl-0.1): Inherit from rust-asn1-rs-impl-0.2. Change-Id: I123a457d31434e1948dd381c4796cf3f349f7d9f Efraim Flashner 2024-11-28gnu: Add rust-asn1-rs-derive-0.5....* gnu/packages/crates-io.scm (rust-asn1-rs-derive-0.5): New variable. (rust-asn1-rs-derive-0.4): Inherit from rust-asn1-rs-derive-0.5. Change-Id: I7d48896078e2e407a9ba67ef81b67ff38c8010d7 Efraim Flashner 2024-11-28gnu: Add rust-asn1-rs-0.6....* gnu/packages/crates-tls.scm (rust-asn1-rs-0.6): New variable. (rust-asn1-rs-0.5): Inherit from rust-asn1-rs-0.6. Change-Id: I3cdf2647cbfd327d93ba518b8d579dcfd7609683 Efraim Flashner 2024-11-28gnu: rust-rustls-pki-types-1: Update to 1.10.0....* gnu/packages/crates-tls.scm (rust-rustls-pki-types-1): Update to 1.10.0. [source]: Add snippet to allow for newer versions of dependencies. [cargo-development-inputs]: Add rust-crabgrind-0.1. [native-inputs]: Add valgrind. Change-Id: I490a1acde3cae79b9ceb5f710111999c3667ac4f Efraim Flashner 2024-11-28gnu: Add rust-rustls-0.23....* gnu/packages/crates-tls.scm (rust-rustls-0.23): New variable. (rust-rustls-0.22): Inherit from rust-rustls-0.23. Change-Id: Ifd1134ecca660e6184ed4dd6f964700ccc3c25f8 Efraim Flashner 2024-11-28gnu: Add rust-picky-asn1-x509-0.12....* gnu/packages/crates-tls.scm (rust-picky-asn1-x509-0.12): New variable. Change-Id: Ib01d5b5285585fe40bfec30f1c17530c63beaaca Efraim Flashner 2024-11-28gnu: Add rust-picky-asn1-der-0.4....* gnu/packages/crates-tls.scm (rust-picky-asn1-der-0.4): New variable. Change-Id: Iab80b9223a09f0a7e9a148037fcdd0868624ac02 Efraim Flashner 2024-11-28gnu: Add rust-picky-asn1-0.8....* gnu/packages/crates-tls.scm (rust-picky-asn1-0.8): New variable. Change-Id: Id22de560a6f99224a5b8d852b78aa4046cda8823 Efraim Flashner 2024-11-28gnu: Add rust-oid-0.2....* gnu/packages/crates-tls.scm (rust-oid-0.2): New variable. Change-Id: I5be9ea13f3ab74b758b67ffcea6375e02786f35f Efraim Flashner 2024-07-19gnu: rust-rustls-pki-types-1: Update to 1.7.0....* gnu/packages/crates-tls.scm (rust-rustls-pki-types-1): Update to 1.7.0. Change-Id: Iea95baaa716e8bf4baaacccb8df009996d9d0d65 Nicolas Goaziou