diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-05-05 12:07:39 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-05-06 16:51:49 -0400 |
| commit | 3ab48ed6cd4b1f87a4c339b172dd8a107478654c (patch) | |
| tree | 10a68c34526f562fb5ab1bb1f39a41e297aa4627 /gnu/system/examples | |
| parent | b39c4e18f28d39929a034a2350b316038044638e (diff) | |
gnu: system: Add SPICE capability to the VM image.
* gnu/system/examples/vm-image.tmpl (services)
[spice-vdagent-service-type]: Add service.
[slim-service-type] <xorg-configuration>: Add the xf86-video-qxl module.
Diffstat (limited to 'gnu/system/examples')
| -rw-r--r-- | gnu/system/examples/vm-image.tmpl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/system/examples/vm-image.tmpl b/gnu/system/examples/vm-image.tmpl index bcb2ba614c0..1a2dfca4528 100644 --- a/gnu/system/examples/vm-image.tmpl +++ b/gnu/system/examples/vm-image.tmpl | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; | 5 | ;; |
| 6 | 6 | ||
| 7 | (use-modules (gnu) (guix) (srfi srfi-1)) | 7 | (use-modules (gnu) (guix) (srfi srfi-1)) |
| 8 | (use-service-modules desktop networking ssh xorg) | 8 | (use-service-modules desktop networking spice ssh xorg) |
| 9 | (use-package-modules bootloaders certs fonts nvi | 9 | (use-package-modules bootloaders certs fonts nvi |
| 10 | package-management wget xorg) | 10 | package-management wget xorg) |
| 11 | 11 | ||
| @@ -75,11 +75,20 @@ root ALL=(ALL) ALL | |||
| 75 | (default-user "guest") | 75 | (default-user "guest") |
| 76 | (xorg-configuration | 76 | (xorg-configuration |
| 77 | (xorg-configuration | 77 | (xorg-configuration |
| 78 | ;; The QXL virtual GPU driver is added to provide | ||
| 79 | ;; a better SPICE experience. | ||
| 80 | (modules (cons xf86-video-qxl | ||
| 81 | %default-xorg-modules)) | ||
| 78 | (keyboard-layout keyboard-layout))))) | 82 | (keyboard-layout keyboard-layout))))) |
| 79 | 83 | ||
| 80 | ;; Uncomment the line below to add an SSH server. | 84 | ;; Uncomment the line below to add an SSH server. |
| 81 | ;;(service openssh-service-type) | 85 | ;;(service openssh-service-type) |
| 82 | 86 | ||
| 87 | ;; Add support for the SPICE protocol, which enables dynamic | ||
| 88 | ;; resizing of the guest screen resolution, clipboard | ||
| 89 | ;; integration with the host, etc. | ||
| 90 | (service spice-vdagent-service-type) | ||
| 91 | |||
| 83 | ;; Use the DHCP client service rather than NetworkManager. | 92 | ;; Use the DHCP client service rather than NetworkManager. |
| 84 | (service dhcp-client-service-type)) | 93 | (service dhcp-client-service-type)) |
| 85 | 94 | ||
