summary refs log tree commit diff stats
path: root/system/settings/machines/t470s.nix
blob: 34fdd0486bdb28b3e30d41950d066590a1e0bd30 (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
{ config, pkgs, ... }:

{ hardware.usbWwan.enable = false; # unused
  systemd.services.ModemManager.enable = false;

  hardware.enableRedistributableFirmware = true;

  boot.postBootCommands = ''
    echo bfq > /sys/block/nvme0n1/queue/scheduler
  '';

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

  services.tlp.extraConfig = ''
    DISK_DEVICES="nvme0n1"
    DISK_IOSCHED="keep"
  '';

  services.xserver = {
    dpi = 109;
    monitorSection = ''
      DisplaySize 310 176
    '';
  };

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

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