
It is going to be merged into nixpkgs, under `nixos/hardware`. This will give better discoverability, and considering the low turnover (less than 100 commits in the last year and only 350 total) it won’t make any dent on the size of nixpkgs. We have a monorepo, let’s use it.
30 lines
496 B
Nix
30 lines
496 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../../../common/cpu/intel
|
|
../../../common/pc/laptop
|
|
];
|
|
|
|
boot = {
|
|
initrd.kernelModules = [ "ata_piix" ];
|
|
kernelParams = [
|
|
"apm=on"
|
|
"acpi=on"
|
|
"vga=0x317"
|
|
"video=vesafb:ywrap"
|
|
|
|
# Important, disable KMS to fix backlight regulation:
|
|
"nomodeset"
|
|
];
|
|
};
|
|
|
|
# TODO: reverse compat
|
|
hardware.opengl.driSupport = false;
|
|
|
|
# TODO: reverse compat
|
|
services.xserver = {
|
|
defaultDepth = lib.mkDefault 24;
|
|
};
|
|
}
|