aboutsummaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-04-30 23:12:03 +0200
committerLudovic Courtès <ludo@gnu.org>2019-05-01 09:33:54 +0200
commit4c13ccbf392702cc94bcd677917ff2c44a9c264c (patch)
tree98a4d4a2e73247c01e7d82cf02c80d87f0ef44a8 /gnu/system
parent4ee55938de315ac965c12a99f5dc98f48ac2cc83 (diff)
downloadguix-4c13ccbf392702cc94bcd677917ff2c44a9c264c.tar
guix-4c13ccbf392702cc94bcd677917ff2c44a9c264c.tar.gz
vm-image: Add 'label' field.
* gnu/system/examples/vm-image.tmpl (label): New field.
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/examples/vm-image.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/system/examples/vm-image.tmpl b/gnu/system/examples/vm-image.tmpl
index a140082c0b..0dbd31fe0a 100644
--- a/gnu/system/examples/vm-image.tmpl
+++ b/gnu/system/examples/vm-image.tmpl
@@ -4,9 +4,10 @@
;; guix system reconfigure /etc/config.scm
;;
-(use-modules (gnu) (srfi srfi-1))
+(use-modules (gnu) (guix) (srfi srfi-1))
(use-service-modules desktop networking ssh xorg)
-(use-package-modules bootloaders certs fonts nvi wget xorg)
+(use-package-modules bootloaders certs fonts nvi
+ package-management wget xorg)
(define vm-image-motd (plain-file "motd" "
\x1b[1;37mThis is the GNU system. Welcome!\x1b[0m
@@ -34,6 +35,9 @@ accounts.\x1b[0m
(locale "en_US.utf8")
(keyboard-layout (keyboard-layout "us" "altgr-intl"))
+ ;; Label for the GRUB boot menu.
+ (label (string-append "GNU Guix " (package-version guix)))
+
(firmware '())
;; Below we assume /dev/vda is the VM's hard disk.