aboutsummaryrefslogtreecommitdiff
;; -*-scheme-*-

;; This is an operating system configuration template
;; for a "bare bones" 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-raw \
;;         gnu/system/examples/bare-hurd.tmpl
;;
;; You may run it like so
;;
;;     guix shell qemu -- qemu-system-i386 -enable-kvm -m 2048 \
;;      -device rtl8139,netdev=net0 -netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 \
;;      -snapshot -hda <the-image>
;;
;; and use it like
;;
;;     ssh -p 10022 root@localhost
;;     guix build -e '(@@ (gnu packages commencement) gnu-make-boot0)'
;;
;; or even (if you use --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 "my-root"))
                          (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)))
                    %base-services/hurd))))

%hurd-os
profile....Ludovic Courtès 2019-04-27doc: Update bit about SSH in the VM....Ludovic Courtès 2019-04-26vm-image: Remove NetworkManager & co. and add the DHCP client....Ludovic Courtès 2019-04-26vm-image: Use the actual file name of the current file....Ludovic Courtès 2019-04-26system: Provide a new VM image configuration....Ludovic Courtès 2019-04-10doc: Adjust desktop instructions for GDM....Ludovic Courtès 2019-04-05services: xorg: Add 'set-xorg-configuration'....Ludovic Courtès 2019-04-03gnu: Add example system configuration for asus-c201....Timothy Sample 2019-03-28system: Fix typo in desktop example....Ludovic Courtès 2019-03-27services: Deprecate 'xfce-desktop-service'....Ludovic Courtès 2019-03-27services: Deprecate 'gnome-desktop-service'....Ludovic Courtès 2019-03-25accounts: Add default value for the 'home-directory' field of <user-account>....Ludovic Courtès 2019-03-13Remove traces of "GuixSD"....Ludovic Courtès 2019-01-23gnu: Replace all cons* with beginner-friendly (append (list ...))....Pierre Neidhardt 2019-01-23gnu: Fix missing EFI entry in "desktop" example....Pierre Neidhardt 2019-01-20services: Use guix-service-type....Efraim Flashner 2018-12-24doc: Example vm-image doesn't need firmware....Efraim Flashner 2018-12-03doc: Fix "desktop" OS config example....Laura Lazzati 2018-11-26services: openssh: Install OpenSSH in the system profile....Ludovic Courtès 2018-10-18services: dhcp-client: Deprecate 'dhcp-client-service' procedure....Ludovic Courtès 2018-07-05doc: Improve UEFI/BIOS bootloader documentation....Ludovic Courtès 2018-05-28file-systems: Remove 'title' field and add <file-system-label>....Ludovic Courtès