mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 02:43:24 +03:00
examples/demo: select the appropriate X11 driver
This commit is contained in:
parent
07e6c358e3
commit
34eebc95d6
@ -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" ];
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user