1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 11:03:37 +03:00

examples/demo: select the appropriate X11 driver

This commit is contained in:
Samuel Dionne-Riel 2019-10-10 00:38:03 -04:00
parent 07e6c358e3
commit 34eebc95d6

View File

@ -2,6 +2,7 @@
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" ];
};
})
];
}