thinkpad-t460s.nix (1345B)
1 { config, pkgs, ... }: 2 #let 3 # sources = import ../../nix/sources.nix; 4 #in 5 { 6 imports = [ 7 # (sources.nixos-hardware + "/lenovo/thinkpad/t460s") 8 # (sources.nixos-hardware + "/common/pc/ssd") 9 ./thinkpad.nix 10 ]; 11 nix.maxJobs = 12; 12 services = { 13 tlp = { 14 settings = { 15 # CPU optimizations 16 "CPU_SCALING_GOVERNOR_ON_AC" = "performance"; 17 "CPU_SCALING_GOVERNOR_ON_BAT" = "powersave"; 18 "CPU_MIN_PERF_ON_AC" = 0; 19 "CPU_MAX_PERF_ON_AC" = 100; 20 "CPU_MIN_PERF_ON_BAT" = 0; 21 "CPU_MAX_PERF_ON_BAT" = 50; 22 # DEVICES (wifi, ..) 23 "DEVICES_TO_DISABLE_ON_STARTUP" = ""; 24 "DEVICES_TO_ENABLE_ON_AC" = "bluetooth wifi wwan"; 25 "DEVICES_TO_DISABLE_ON_BAT" = ""; 26 # Network management 27 "DEVICES_TO_DISABLE_ON_LAN_CONNECT" = ""; 28 "DEVICES_TO_DISABLE_ON_WIFI_CONNECT" = ""; 29 "DEVICES_TO_DISABLE_ON_WWAN_CONNECT" = ""; 30 "DEVICES_TO_ENABLE_ON_LAN_DISCONNECT" = ""; 31 "DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT" = ""; 32 "DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT" = ""; 33 # Docking 34 "DEVICES_TO_DISABLE_ON_DOCK" = "wifi"; 35 "DEVICES_TO_ENABLE_ON_UNDOCK" = "wifi"; 36 # Make sure it uses the right hard drive 37 "DISK_DEVICES" = "nvme0n1p3"; 38 }; 39 }; 40 xserver = { 41 dpi = 128; 42 }; 43 }; 44 }