dotfiles-guix/modules/home-packages/virtualization.scm

48 lines
1.7 KiB
Scheme
Raw Normal View History

(define-module (home-packages virtualization)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages package-management)
#:use-module (gnu packages build-tools)
#:use-module (gnu packages virtualization)
#:use-module (gnu packages firmware)
#:use-module (guix gexp))
2023-09-07 03:50:18 +00:00
(define-public libvirt-new
(package
(inherit libvirt)
2023-09-07 19:20:42 +00:00
(name "libvirt-new")
2023-09-07 03:50:18 +00:00
(inputs
(modify-inputs (package-inputs libvirt)
2023-09-07 19:20:42 +00:00
(append qemu)))
(arguments
(substitute-keyword-arguments (package-arguments libvirt)
((#:phases phases)
#~(modify-phases #$phases
2023-09-14 12:59:36 +00:00
(add-after 'install 'install-uefi
2023-09-07 19:20:42 +00:00
(lambda _
(let ((fmw (string-append #$output "/share/qemu")))
(mkdir-p fmw)
(copy-recursively #$(file-append qemu "/share/qemu") fmw))
))
))))))
2023-09-07 03:50:18 +00:00
(define-public virt-manager-new
2023-09-07 19:20:42 +00:00
(package
(inherit virt-manager)
(name "virt-manager-new")
(inputs
(modify-inputs (package-inputs virt-manager)
(append qemu)))
(arguments
(substitute-keyword-arguments (package-arguments virt-manager)
((#:phases phases)
#~(modify-phases #$phases
2023-09-14 12:59:36 +00:00
(add-after 'install 'install-uefi
2023-09-07 19:20:42 +00:00
(lambda _
(let ((fmw (string-append #$output "/share/qemu")))
(mkdir-p fmw)
(copy-recursively #$(file-append qemu "/share/firmware") fmw))
))
))))))