mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-04 01:07:14 +08:00
treewide: abstract away common configs into common/
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/intel
|
||||
../../../common/pc/laptop
|
||||
];
|
||||
|
||||
boot = {
|
||||
initrd.kernelModules = [ "ata_piix" ];
|
||||
kernelParams = [
|
||||
@@ -8,6 +13,7 @@
|
||||
"acpi=on"
|
||||
"vga=0x317"
|
||||
"video=vesafb:ywrap"
|
||||
|
||||
# Important, to disable Kernel Mode Setting for the graphics card
|
||||
# This will allow backlight regulation
|
||||
"nomodeset"
|
||||
@@ -17,13 +23,6 @@
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user