services: build-vm: Provide only one locale.

* gnu/services/virtualization.scm (%virtual-build-machine-operating-system)
[locale, locale-definitions]: New fields.

Change-Id: Ieb24b3a0c210291d8c04412e4c263b5e377b5704
This commit is contained in:
Ludovic Courtès 2024-04-08 15:34:18 +02:00
parent 6228a2b8ba
commit fb61323dba
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -46,6 +46,7 @@
#:use-module (gnu system shadow)
#:autoload (gnu system vm) (linux-image-startup-command
virtualized-operating-system)
#:autoload (gnu system locale) (locale-definition)
#:use-module (gnu system)
#:use-module (guix derivations)
#:use-module (guix gexp)
@ -1190,6 +1191,14 @@ authpriv.*;auth.info /var/log/secure
(define %virtual-build-machine-operating-system
(operating-system
(host-name "build-machine")
(locale "en_US.utf8")
(locale-definitions
;; Save space by providing only one locale.
(list (locale-definition (name "en_US.utf8")
(source "en_US")
(charset "UTF-8"))))
(bootloader (bootloader-configuration ;unused
(bootloader grub-minimal-bootloader)
(targets '("/dev/null"))))