treewide: abstract away common configs into common/

This commit is contained in:
Yegor Timoshenko
2017-12-24 23:21:05 +00:00
parent b63e0eb372
commit 5407ba7a52
23 changed files with 112 additions and 38 deletions

View File

@@ -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";
};
};
}