summaryrefslogtreecommitdiff
path: root/machines/x220-aji.nix
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2020-02-12 21:32:59 -0500
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2020-02-12 21:32:59 -0500
commitaded33b30e09636e7db39ee414b7f8f231821489 (patch)
tree65018e05c4529ccb738be2cae13e762ae22ca40d /machines/x220-aji.nix
parent1a5977138eedf9605d03ddc0acaf1247764e77d9 (diff)
bunchafixes
Diffstat (limited to 'machines/x220-aji.nix')
-rw-r--r--machines/x220-aji.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/machines/x220-aji.nix b/machines/x220-aji.nix
index 84112ab..e45ef02 100644
--- a/machines/x220-aji.nix
+++ b/machines/x220-aji.nix
@@ -10,6 +10,12 @@
networking.firewall.allowedTCPPorts = [ 3000 ];
+ services.thinkfan.enable = true;
+ services.thinkfan.sensors = ''
+ hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input
+ hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp2_input
+ hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp3_input
+ '';
services.openssh.enable = true;
services.postgresql.package = lib.mkForce pkgs.postgresql_11;
@@ -41,6 +47,7 @@
extraModprobeConfig = ''
options i915 enable_rc6=1
+ options thinkpad_acpi fan_control=1
'';
};