From 5f71b375fdce19f9d263cf7038c476bd997b1e8c Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sat, 13 Apr 2024 22:15:37 -0400 Subject: [PATCH] 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. --- .guix/rekahsoft/guix-config/desktop.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.guix/rekahsoft/guix-config/desktop.scm b/.guix/rekahsoft/guix-config/desktop.scm index 202b502..3e75364 100644 --- a/.guix/rekahsoft/guix-config/desktop.scm +++ b/.guix/rekahsoft/guix-config/desktop.scm @@ -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")