mirror of
https://git.in.rschanz.org/ryan77627/guix-config.git
synced 2024-11-07 09:46:15 -05:00
libvirt works libvirt works libvirt works
This commit is contained in:
parent
43ea80ea90
commit
c8b287a7c7
2 changed files with 28 additions and 32 deletions
|
@ -170,7 +170,7 @@
|
|||
(service nix-service-type)
|
||||
(service libvirt-service-type
|
||||
(libvirt-configuration
|
||||
(libvirt libvirt-new)
|
||||
(libvirt libvirt-ovmf)
|
||||
(unix-sock-group "libvirt")))
|
||||
(service virtlog-service-type)
|
||||
(service bluetooth-service-type)
|
||||
|
|
|
@ -10,40 +10,36 @@
|
|||
#:use-module (gnu packages firmware)
|
||||
#:use-module (guix gexp))
|
||||
|
||||
(define ovmf-new
|
||||
(package
|
||||
(inherit ovmf)
|
||||
(name "ovmf-new")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments ovmf)
|
||||
((#:phases phases)
|
||||
#~(modify-phases #$phases
|
||||
(replace 'install
|
||||
(lambda _
|
||||
(let ((fmw (string-append #$output "/share/firmware")))
|
||||
(mkdir-p fmw)
|
||||
(copy-recursively "Build/OvmfX64/RELEASE_GCC49/FV" fmw))))))))))
|
||||
|
||||
(define-public libvirt-new
|
||||
(define-public libvirt-ovmf
|
||||
(package
|
||||
(inherit libvirt)
|
||||
(name "libvirt-new")
|
||||
(name "libvirt-ovmf")
|
||||
(inputs
|
||||
(modify-inputs (package-inputs libvirt)
|
||||
(append ovmf-new)))))
|
||||
(append qemu)))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments libvirt)
|
||||
((#:phases phases)
|
||||
#~(modify-phases #$phases
|
||||
(add-after 'install 'install-firmware
|
||||
(lambda _
|
||||
(let ((fmw (string-append #$output "/share/qemu")))
|
||||
(mkdir-p fmw)
|
||||
(copy-recursively #$(file-append qemu "/share/qemu") fmw))))))))))
|
||||
|
||||
(define-public virt-manager-ovmf
|
||||
(package
|
||||
(inherit virt-manager)
|
||||
(name "virt-manager-ovmf")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments virt-manager)
|
||||
((#:phases phases)
|
||||
#~(modify-phases #$phases
|
||||
(add-after 'install 'ovmf
|
||||
(lambda _
|
||||
(let ((fmw (string-append #$output "/usr/share/OVMF")))
|
||||
(mkdir-p fmw)
|
||||
(copy-recursively #$(file-append ovmf-new "/share/firmware") fmw)
|
||||
;(mkdir-p fmw)
|
||||
(copy-recursively "Build/OvmfX64/RELEASE_GCC49/FV" fmw))))))))))
|
||||
(package
|
||||
(inherit virt-manager)
|
||||
(name "virt-manager-ovmf")
|
||||
(inputs
|
||||
(modify-inputs (package-inputs virt-manager)
|
||||
(append qemu)))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments virt-manager)
|
||||
((#:phases phases)
|
||||
#~(modify-phases #$phases
|
||||
(add-after 'install 'install-firmware
|
||||
(lambda _
|
||||
(let ((fmw (string-append #$output "/share/qemu")))
|
||||
(mkdir-p fmw)
|
||||
(copy-recursively #$(file-append qemu "/share/firmware") fmw))))))))))
|
||||
|
|
Loading…
Reference in a new issue