[RFC PATCH v2 03/10] img/app: add Wayland over virtio-gpu support to kernel

Alyssa Ross
2022-09-30T21:36:10Z

The current LTS kernel does not support virtio-gpu context types, so
we have to switch to the latest kernel.

Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com>
---
I haven't had time yet to figure out why it doesn't work if I let
DRM_VIRTIO_GPU default to "m" and modprobe it inside the VM.

img/app/default.nix | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/img/app/default.nix b/img/app/default.nix
index e7d5366..a6734d2 100644
--- a/img/app/default.nix
+++ b/img/app/default.nix
@@ -49,12 +49,13 @@ let
-T ${writeReferencesToFile packagesSysroot} .
'';

- kernel = buildPackages.linux.override {
+ kernel = buildPackages.linux_latest.override {
structuredExtraConfig = with lib.kernel; {
VIRTIO = yes;
VIRTIO_PCI = yes;
VIRTIO_BLK = yes;
VIRTIO_CONSOLE = yes;
+ DRM_VIRTIO_GPU = yes;
EXT4_FS = yes;
DRM_BOCHS = yes;
DRM = yes;
--
2.37.1