-
Notifications
You must be signed in to change notification settings - Fork 5
/
asus-ux32ln-r4031h.nix
71 lines (58 loc) · 1.35 KB
/
asus-ux32ln-r4031h.nix
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{pkgs, config, ...}:
with pkgs.lib;
{
options = {
};
config = {
boot={
kernelModules = [
"fbcon" "i915"
"acpi-cpufreq"
"cpufreq-ondemand"
"coretemp"
"battery"
"xhci-hcd"
"uvcvideo"
"snd-hda-intel power_save=5 index=1,0"
"snd-pcm"
"kvm-intel"
"aesni-intel"
"crc32c-intel"
"intel-powerclamp"
"ath9k"
"asus-nb-wmi"
];
extraModulePackages = [ config.boot.kernelPackages.bbswitch ];
initrd = {
kernelModules = [
"fbcon" "i915"
];
};
};
hardware.bluetooth.enable = mkDefault true;
hardware.bumblebee.enable = mkDefault true;
# Intel Core i7 -- 4500U
nix.maxJobs = mkDefault 4;
services.xserver = {
videoDrivers = ["intel" "i965"];
# TODO: find the right model or add one for it.
xkbModel = "pc105";
synaptics = mkDefault {
enable = true;
minSpeed = "0.7";
maxSpeed = "3";
accelFactor = "0.05";
};
# Intel Corporation Haswell-ULT Integrated Graphics Controller
driSupport = true;
resolutions = [{x = 1920; y=1080;}];
defaultDepth = 24;
};
powerManagement = {
enable = mkDefault true;
powerUpCommands = ''
${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda
'';
};
};
}