-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardware-x230.nix
66 lines (52 loc) · 1.31 KB
/
hardware-x230.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
{ config, lib, pkgs, ... }:
{
boot.extraModulePackages = with config.boot.kernelPackages; [
acpi_call
];
boot.kernelModules = [
"acpi_call"
"tpm-rng"
];
hardware.bluetooth = {
enable = true;
extraConfig = ''
[general]
Enable=Source,Sink,Media,Socket
'';
};
hardware.cpu.intel.updateMicrocode = true;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
#hardware.trackpoint = {
# enable = true;
# emulateWheel = true;
# #speed = 250;
# #sensitivity = 140;
#};
# https://github.com/NixOS/nixos-hardware/blob/5a00ea423a39b66dff032a03973932ab4f18af91/common/pc/laptop/default.nix
powerManagement.cpuFreqGovernor =
lib.mkIf config.services.tlp.enable (lib.mkForce null);
myuser.packages = with pkgs; [
atom
dropbox
kicad
steam
vlc
];
services.tlp.enable = true; # TLP Linux Advanced Power Management
services.xserver.deviceSection = lib.mkDefault ''
Option "TearFree" "true"
'';
services.xserver.displayManager.gdm.wayland = false;
services.xserver.libinput.enable = true;
services.xserver.videoDrivers = [
"intel"
];
services.xserver.windowManager.i3.enable = false;
services.xserver.windowManager.i3.extraSessionCommands = ''
xset r rate 250 32
'';
}