2017-12-24 10:13:25 -05:00
|
|
|
{ lib, ... }:
|
|
|
|
|
2016-02-26 05:59:36 -05:00
|
|
|
{
|
2017-12-24 06:59:21 -05:00
|
|
|
boot = {
|
|
|
|
initrd.kernelModules = [ "ata_piix" ];
|
|
|
|
kernelParams = [
|
2016-02-26 05:59:36 -05:00
|
|
|
"apm=on"
|
|
|
|
"acpi=on"
|
2017-12-24 06:59:21 -05:00
|
|
|
"vga=0x317"
|
2016-02-26 05:59:36 -05:00
|
|
|
"video=vesafb:ywrap"
|
|
|
|
# Important, to disable Kernel Mode Setting for the graphics card
|
|
|
|
# This will allow backlight regulation
|
|
|
|
"nomodeset"
|
2017-12-24 06:59:21 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.opengl.driSupport = false;
|
2016-02-26 05:59:36 -05:00
|
|
|
|
2017-12-24 06:59:21 -05:00
|
|
|
services.xserver = {
|
2017-12-24 10:13:25 -05:00
|
|
|
enable = lib.mkDefault true;
|
|
|
|
defaultDepth = lib.mkDefault 24;
|
|
|
|
videoDrivers = [ "intel" ];
|
|
|
|
autorun = lib.mkDefault true;
|
2017-12-24 06:59:21 -05:00
|
|
|
synaptics = {
|
2017-12-24 10:13:25 -05:00
|
|
|
enable = lib.mkDefault true;
|
2017-12-24 06:59:21 -05:00
|
|
|
dev = "/dev/input/event8";
|
|
|
|
};
|
2016-02-26 05:59:36 -05:00
|
|
|
};
|
2017-12-24 06:59:21 -05:00
|
|
|
}
|