mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 19:35:25 -05:00
59bcffa314
* gnu/system/hurd.scm (%hurd-def%hurd-default-operating-system-kernel, %hurd-default-operating-system): New exported variables. * gnu/system/examples/bare-hurd.tmpl: New file. * Makefile.am (EXAMPLES): Add it. * tests/guix-system.sh: Add --target=i586-pc-gnu when testing it.
31 lines
1 KiB
Scheme
31 lines
1 KiB
Scheme
;; -*-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 disk-image --target=i586-pc-gnu --no-grafts \
|
|
;; gnu/system/examples/bare-hurd.tmpl
|
|
;;
|
|
;; it boots, but needs activation, more setup and services to be useful.
|
|
|
|
(use-modules (gnu) (gnu system hurd) (guix utils))
|
|
|
|
(define %hurd-os
|
|
(operating-system
|
|
(inherit %hurd-default-operating-system)
|
|
(bootloader (bootloader-configuration
|
|
(bootloader grub-minimal-bootloader)
|
|
(target "/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")
|
|
(packages %base-packages/hurd)
|
|
(services %base-services/hurd)))
|
|
|
|
%hurd-os
|