summaryrefslogtreecommitdiffstats
path: root/miefda/2configs/tlp.nix
diff options
context:
space:
mode:
authormiefda <miefda@miefda.de>2015-12-30 18:15:11 +0100
committermiefda <miefda@miefda.de>2015-12-30 18:15:11 +0100
commiteba696c5d2d8e25f1cd4a00007c3c1521fcc6e6f (patch)
tree182386234253714bcaaaf7c18b28f802774bc226 /miefda/2configs/tlp.nix
parentb17e484d614486dc0c1cc45a954ead28f15dc074 (diff)
miefda: init with bobby
Diffstat (limited to 'miefda/2configs/tlp.nix')
-rw-r--r--miefda/2configs/tlp.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/miefda/2configs/tlp.nix b/miefda/2configs/tlp.nix
new file mode 100644
index 000000000..0e1bb0d6b
--- /dev/null
+++ b/miefda/2configs/tlp.nix
@@ -0,0 +1,25 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+{
+ hardware.enableAllFirmware = true;
+ nixpkgs.config.allowUnfree = true;
+
+ hardware.cpu.intel.updateMicrocode = true;
+
+ zramSwap.enable = true;
+ zramSwap.numDevices = 2;
+
+ hardware.trackpoint = {
+ enable = true;
+ sensitivity = 220;
+ speed = 220;
+ emulateWheel = true;
+ };
+
+
+ services.tlp.enable = true;
+ services.tlp.extraConfig = ''
+ START_CHARGE_THRESH_BAT0=80
+ '';
+}