summaryrefslogtreecommitdiffstats
path: root/acer/aspire/4810t/default.nix
blob: ce1091bd87b75618fcb0c111644790e4e0fda032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* imported from https://nixos.org/wiki/Acer_4810T */

{ config, pkgs, lib, ... }:

{
 # Make te network WLAN card (wlan0) firmware available
 require = [ <nixpkgs>/nixos/modules/hardware/network/intel-5000.nix ];

 boot = rec {
   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"
   ];
   kernelModules = [
     "kvm-intel"
   ];
 };

 services = {
   xserver = {
     enable = true;
     defaultDepth = 24;
     videoDriver = "intel";
     autorun = true;
     driSupport = false;
     synaptics = {
       enable = true;
       dev = "/dev/input/event8";
     };
  };
};