From 667b1d8eb9c23d1de433d71caea5648a5acabadb Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Sun, 24 Dec 2017 11:59:21 +0000 Subject: [PATCH] 4810t: fix evaluation, clean up --- acer/aspire/4810t/default.nix | 48 ++++++++++++++--------------------- 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/acer/aspire/4810t/default.nix b/acer/aspire/4810t/default.nix index ce1091b..b984623 100644 --- a/acer/aspire/4810t/default.nix +++ b/acer/aspire/4810t/default.nix @@ -1,37 +1,27 @@ -/* imported from https://nixos.org/wiki/Acer_4810T */ - -{ config, pkgs, lib, ... }: - { - # Make te network WLAN card (wlan0) firmware available - require = [ /nixos/modules/hardware/network/intel-5000.nix ]; - - boot = rec { - initrd.kernelModules = [ "ata_piix" ]; - kernelParams = [ + boot = { + initrd.kernelModules = [ "ata_piix" ]; + kernelParams = [ "apm=on" "acpi=on" - "vga=0x317" + "vga=0x317" "video=vesafb:ywrap" # Important, to disable Kernel Mode Setting for the graphics card # This will allow backlight regulation "nomodeset" - ]; - kernelModules = [ - "kvm-intel" - ]; - }; - - services = { - xserver = { - enable = true; - defaultDepth = 24; - videoDriver = "intel"; - autorun = true; - driSupport = false; - synaptics = { - enable = true; - dev = "/dev/input/event8"; - }; + ]; }; -}; + + hardware.opengl.driSupport = false; + + services.xserver = { + enable = true; + defaultDepth = 24; + videoDriver = "intel"; + autorun = true; + synaptics = { + enable = true; + dev = "/dev/input/event8"; + }; + }; +}