examples/demo: select the appropriate X11 driver
let
inherit (lib) mkForce;
+ system_type = config.mobile.system.type;
# Why copy them all?
# Because otherwise the wallpaper picker will default to /nix/store as a path
@@ -35,7 +36,7 @@ in
enable = true;
libinput.enable = true;
- videoDrivers = [ "fbdev" ];
+ videoDrivers = lib.mkDefault [ "fbdev" ];
# Automatically login as nixos.
displayManager.lightdm = {
@@ -223,5 +224,15 @@ 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" ];
+ };
+ })
];
}
