mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-24 02:29:44 +01:00
3743ae21f5
Also extract documentation from raspberry-pi/2/ profile.
29 lines
614 B
Nix
29 lines
614 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
boot = {
|
|
initrd.kernelModules = [ "ata_piix" ];
|
|
kernelParams = [
|
|
"apm=on"
|
|
"acpi=on"
|
|
"vga=0x317"
|
|
"video=vesafb:ywrap"
|
|
# Important, to disable Kernel Mode Setting for the graphics card
|
|
# This will allow backlight regulation
|
|
"nomodeset"
|
|
];
|
|
};
|
|
|
|
hardware.opengl.driSupport = false;
|
|
|
|
services.xserver = {
|
|
enable = lib.mkDefault true;
|
|
defaultDepth = lib.mkDefault 24;
|
|
videoDrivers = [ "intel" ];
|
|
autorun = lib.mkDefault true;
|
|
synaptics = {
|
|
enable = lib.mkDefault true;
|
|
dev = "/dev/input/event8";
|
|
};
|
|
};
|
|
}
|