-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardware-5520.nix
55 lines (45 loc) · 1.25 KB
/
hardware-5520.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
{ config, pkgs, ... }:
{
boot.kernelPackages = pkgs.linuxPackages_latest;
# hardware.bluetooth.enable = true;
hardware.bumblebee.enable = false;
#hardware.bumblebee = {
# enable = true;
# connectDisplay = true;
#};
services.acpid.enable = true;
services.acpid.lidEventCommands = "systemctl suspend";
services.acpid.powerEventCommands = "systemctl suspend";
services.logind.extraConfig = ''
HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
'';
services.xserver.libinput.enable = true;
services.xserver.libinput.touchpad = {
accelProfile = "adaptive";
accelSpeed = "0.7";
scrollMethod = "twofinger";
tapping = false;
tappingDragLock = false;
clickMethod = "clickfinger";
naturalScrolling = true;
disableWhileTyping = true;
# additionalOptions = ''
# Option "SendEventsMode" "disabled-on-external-mouse"
# '';
};
# services.xserver.displayManager.gdm.wayland = false; # problems with nvidia?
services.xserver.videoDrivers = [
# "nvidia"
"intel"
];
services.xserver.windowManager.i3.extraSessionCommands = ''
xset r rate 250 32
'';
#swapDevices = [{
# device = "/var/swapfile";
# size = 8192;
#}];
}