summary refs log tree commit diff stats
path: root/modules/machines/t470s.nix
blob: 842b556e3d0ec2cfabd3325486eaa11dbe4ad3b2 (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
38
39
40
41
42
43
44
45
46
47
{ config, pkgs, ... }:

{ hardware.usbWwan.enable = true;
  hardware.firmware = with pkgs; [
    firmwareLinuxNonfree
  ];

  services.thinkfan.sensors = ''
    hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp3_input
    hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp1_input
    hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp2_input
    hwmon /sys/devices/virtual/thermal/thermal_zone0/hwmon2/temp1_input
    hwmon /sys/devices/virtual/thermal/thermal_zone1/hwmon3/temp1_input
  '';

  systemd.services.ModemManager.enable = true;

  hardware.pulseaudio.extraConfig = ''
    load-module module-alsa-sink device=hw:0,7
  '';

  # Try a different acceleration method; maybe it helps with screen corruption
  # services.xserver.deviceSection = ''
  #   Option      "AccelMethod"  "sna"
  #   Option      "TearFree"     "true"
  #   Option      "TripleBuffer" "false"
  # '';

  services.xserver.monitorSection = ''
    DisplaySize 310 176

    Option "StandbyTime" "0"
    Option "SuspendTime" "300"
    Option "OffTime"     "600"
    Option "BlankTime"   "0"
  '';

  environment.systemPackages = with pkgs; [
    nvme-cli
  ];

  imports = [
    ../hardware/intel-gpu.nix
    ../hardware/hidpi.nix
    ../hardware/thinkpad.nix
  ];
}