1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +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 let
inherit (lib) mkForce; inherit (lib) mkForce;
system_type = config.mobile.system.type;
# Why copy them all? # Why copy them all?
# Because otherwise the wallpaper picker will default to /nix/store as a path # Because otherwise the wallpaper picker will default to /nix/store as a path
@ -35,7 +36,7 @@ in
enable = true; enable = true;
libinput.enable = true; libinput.enable = true;
videoDrivers = [ "fbdev" ]; videoDrivers = lib.mkDefault [ "fbdev" ];
# Automatically login as nixos. # Automatically login as nixos.
displayManager.lightdm = { 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" ];
};
})
]; ];
} }