Commit 6b109adb55bf

Vincent Demeester <vincent@sbr.pm>
2016-11-18 19:14:16
Update hardware configurations
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 277b56b
configuration/acpi.nix
@@ -5,22 +5,4 @@
 		acpi
 		lm_sensors
 	];
-
-	services = {
-		acpid = {
-			enable = true;
-			lidEventCommands = ''
-if grep -q closed /proc/acpi/button/lid/LID/state; then
-	date >> /tmp/i3lock.log
-	DISPLAY=":0.0" XAUTHORITY=/home/fadenb/.Xauthority ${pkgs.i3lock}/bin/i3lock &>> /tmp/i3lock.log
-fi
-'';
-		};
-		tlp = {
-			enable = true;
-			extraConfig = ''
-DISK_DEVICES="nvme0n1p3"
-			'';
-		};
-	};
 }
hardware/dell-latitude-e6540.nix
@@ -23,4 +23,5 @@
 					''
 			];
 	};
+	services.acpid.enable = true;
 }
hardware/thinkpad-t460s-configuration.nix
@@ -1,6 +1,24 @@
 { config, pkgs, ... }:
 
 {
+
+	services = {
+		acpid = {
+			enable = true;
+			lidEventCommands = ''
+if grep -q closed /proc/acpi/button/lid/LID/state; then
+	date >> /tmp/i3lock.log
+	DISPLAY=":0.0" XAUTHORITY=/home/fadenb/.Xauthority ${pkgs.i3lock}/bin/i3lock &>> /tmp/i3lock.log
+fi
+'';
+		};
+		tlp = {
+			enable = true;
+			extraConfig = ''
+DISK_DEVICES="nvme0n1p3"
+			'';
+		};
+	};
 	services.xserver = {
 			synaptics.enable = false;