examples/demo: Prefer modesetting first
@@ -36,7 +36,12 @@ in
enable = true;
libinput.enable = true;
- videoDrivers = lib.mkDefault [ "fbdev" ];
+ videoDrivers = lib.mkDefault [
+ # Try modesetting first
+ "modesetting"
+ # Fallback on fbdev (for many android vendor kernels)
+ "fbdev"
+ ];
# Automatically login as nixos.
displayManager.lightdm = {
@@ -246,16 +251,6 @@ in
};
}
- # FIXME : depthcharge is the wrong assumption.
- # A better abstraction over the X11 stack is required within mobile-nixos.
- # The qemu VM requires the fbdev one to work as expcted.
- # The android devices may have hwcomposer stuff coming.
- (lib.mkIf (system_type == "depthcharge") {
- services.xserver = {
- videoDrivers = [ "modesetting" ];
- };
- })
-
{
# Force userdata for the target partition. It is assumed it will not
# fit in the `system` partition.
