2017-12-24 16:13:25 +01:00
|
|
|
{ lib, ... }:
|
|
|
|
|
2016-02-26 11:59:36 +01:00
|
|
|
{
|
2017-12-25 00:21:05 +01:00
|
|
|
imports = [
|
|
|
|
../../../common/cpu/intel
|
|
|
|
../../../common/pc/laptop
|
|
|
|
];
|
|
|
|
|
2017-12-24 12:59:21 +01:00
|
|
|
boot = {
|
|
|
|
initrd.kernelModules = [ "ata_piix" ];
|
|
|
|
kernelParams = [
|
2016-02-26 11:59:36 +01:00
|
|
|
"apm=on"
|
|
|
|
"acpi=on"
|
2017-12-24 12:59:21 +01:00
|
|
|
"vga=0x317"
|
2016-02-26 11:59:36 +01:00
|
|
|
"video=vesafb:ywrap"
|
2017-12-25 00:21:05 +01:00
|
|
|
|
2017-12-25 22:26:29 +01:00
|
|
|
# Important, disable KMS to fix backlight regulation:
|
2016-02-26 11:59:36 +01:00
|
|
|
"nomodeset"
|
2017-12-24 12:59:21 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2017-12-25 22:26:29 +01:00
|
|
|
# TODO: reverse compat
|
2017-12-24 12:59:21 +01:00
|
|
|
hardware.opengl.driSupport = false;
|
2016-02-26 11:59:36 +01:00
|
|
|
|
2017-12-25 22:26:29 +01:00
|
|
|
# TODO: reverse compat
|
2017-12-24 12:59:21 +01:00
|
|
|
services.xserver = {
|
2017-12-24 16:13:25 +01:00
|
|
|
defaultDepth = lib.mkDefault 24;
|
2016-02-26 11:59:36 +01:00
|
|
|
};
|
2017-12-24 12:59:21 +01:00
|
|
|
}
|