2023-09-06 16:02:40 +00:00
|
|
|
(define-module (home-services virtualization)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (gnu packages virtualization)
|
|
|
|
#:use-module (gnu services)
|
|
|
|
#:use-module (gnu services configuration)
|
|
|
|
#:use-module (gnu services virtualization)
|
|
|
|
#:use-module (gnu home services)
|
2023-09-07 02:23:01 +00:00
|
|
|
#:use-module (home-packages firmware)
|
2023-09-06 16:02:40 +00:00
|
|
|
#:use-module (guix gexp))
|
|
|
|
|
2023-09-06 16:39:00 +00:00
|
|
|
(define libvirt-new
|
2023-09-06 16:02:40 +00:00
|
|
|
(package
|
|
|
|
(inherit libvirt)
|
|
|
|
(inputs
|
|
|
|
(modify-inputs (package-inputs libvirt)
|
2023-09-07 02:23:01 +00:00
|
|
|
(append ovmf-new)))))
|
2023-09-06 16:02:40 +00:00
|
|
|
|
2023-09-06 16:39:00 +00:00
|
|
|
(define-public libvirt-service-type-new
|
2023-09-06 16:02:40 +00:00
|
|
|
(service-type
|
2023-09-06 16:39:00 +00:00
|
|
|
(name 'libvirt-new)
|
2023-09-06 16:02:40 +00:00
|
|
|
(extensions
|
|
|
|
(list
|
|
|
|
(service-extension libvirt-service-type
|
|
|
|
(lambda (config)
|
|
|
|
(libvirt-configuration
|
|
|
|
(unix-sock-group "libvirt")))
|
|
|
|
)
|
|
|
|
(default-value #f)
|
|
|
|
(description "Libvirt with OVMF")))
|
|
|
|
|