desktop: configure libvirt/qemu

* .guix/rekahsoft/guix-config/desktop.scm: Use tianocore firmware from ovmf package in
the (gnu packages firmware) module in order to generate libvirt/qemu.conf to enable booting
using uefi firmware. Additionally, stdio_handler is set to file, as without it vm's could not
e created.
This commit is contained in:
Collin J. Doering 2024-04-13 22:15:37 -04:00
parent 9e83693a11
commit 5f71b375fd
Signed by: rekahsoft
GPG Key ID: 7B4DEB93212B3022
1 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#:use-module (gnu system nss)
#:use-module (gnu packages gnome)
#:use-module (gnu packages linux)
#:use-module (gnu packages firmware)
#:use-module (gnu packages wm)
#:use-module (gnu packages shells)
#:use-module (gnu services virtualization)
@ -41,6 +42,14 @@
(service qemu-binfmt-service-type
(qemu-binfmt-configuration
(platforms (lookup-qemu-platforms "arm" "aarch64"))))
(simple-service 'libvirt-configuration etc-service-type
(list `("libvirt/qemu.conf" ,(mixed-text-file "qemu.conf"
"stdio_handler=\"file\"\n"
"nvram = [\n"
" \"" ovmf "/share/firmware/ovmf_x64.bin:" ovmf "/share/firmware/ovmf_vars_x64.bin\"\n"
"]\n"))))
(service screen-locker-service-type
(screen-locker-configuration
(name "i3lock")