045ebb3e58
* gnu/bootloader.scm (<bootloader-configuration>): Deprecate "device" field in favor of "target" field. This is mostly a renaming but also a generalization to support UEFI targets being paths to a mounted partition instead of a device name. * gnu/system/examples/bare-bones.tmpl: * gnu/system/examples/desktop.tmpl: * gnu/system/examples/lightweight-desktop.tmpl: * gnu/system/examples/vm-image.tmpl: * gnu/system/install.scm: * gnu/tests.scm: * gnu/tests/install.scm: * gnu/tests/nfs.scm: * tests/system.scm: Adapt all invocations of bootloader-configuration. * guix/scripts/system.scm (perform-action): Rename device argument to bootloader-target. (process-action): Adapt caller. * doc/guix.texi (Proceeding with the Installation): * doc/guix.texi (Bootloader Configuration): Update documentation.
54 lines
1.9 KiB
Cheetah
54 lines
1.9 KiB
Cheetah
;;; This is an operating system configuration template for a "bare-bones" setup,
|
|
;;; suitable for booting in a virtualized environment, including virtual private
|
|
;;; servers (VPS).
|
|
|
|
(use-modules (gnu))
|
|
(use-package-modules bootloaders disk nvi)
|
|
|
|
(define vm-image-motd (plain-file "motd" "
|
|
This is the GNU system. Welcome!
|
|
|
|
This instance of GuixSD is a bare-bones template for virtualized environments.
|
|
|
|
You will probably want to do these things first if you booted in a virtual
|
|
private server (VPS):
|
|
|
|
* Set a password for 'root'.
|
|
* Set up networking.
|
|
* Expand the root partition to fill the space available by 0) deleting and
|
|
recreating the partition with fdisk, 1) reloading the partition table with
|
|
partprobe, and then 2) resizing the filesystem with resize2fs.\n"))
|
|
|
|
(operating-system
|
|
(host-name "gnu")
|
|
(timezone "Etc/UTC")
|
|
(locale "en_US.utf8")
|
|
|
|
;; Assuming /dev/sdX is the target hard disk, and "my-root" is
|
|
;; the label of the target root file system.
|
|
(bootloader (grub-configuration (target "/dev/sda")
|
|
(terminal-outputs '(console))))
|
|
(file-systems (cons (file-system
|
|
(device "my-root")
|
|
(title 'label)
|
|
(mount-point "/")
|
|
(type "ext4"))
|
|
%base-file-systems))
|
|
|
|
;; This is where user accounts are specified. The "root"
|
|
;; account is implicit, and is initially created with the
|
|
;; empty password.
|
|
(users %base-user-accounts)
|
|
|
|
;; Globally-installed packages.
|
|
(packages (cons* nvi fdisk
|
|
grub ; mostly so xrefs to its manual work
|
|
parted ; partprobe
|
|
%base-packages))
|
|
|
|
(services (modify-services %base-services
|
|
(login-service-type config =>
|
|
(login-configuration
|
|
(inherit config)
|
|
(motd vm-image-motd))))))
|