about summary refs log tree commit diff
path: root/nixos/haruka
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-13 16:43:30 +0900
committersefidel <contact@sefidel.net>2023-09-13 16:43:30 +0900
commit9a1c1e0697ccf6e519288b578bfc3eb799b3d53c (patch)
tree6355abdc5fee94d69da966118dcf68f3c384044c /nixos/haruka
parent656260eaa887d659627e0b229fd94c207de1622d (diff)
downloadnixrc-9a1c1e0697ccf6e519288b578bfc3eb799b3d53c.tar.gz
nixrc-9a1c1e0697ccf6e519288b578bfc3eb799b3d53c.zip
feat(nixos/haruka): add laptop-specific tweaks
Diffstat (limited to 'nixos/haruka')
-rw-r--r--nixos/haruka/configuration.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/nixos/haruka/configuration.nix b/nixos/haruka/configuration.nix
index 1dc71a8..5f1d715 100644
--- a/nixos/haruka/configuration.nix
+++ b/nixos/haruka/configuration.nix
@@ -83,7 +83,7 @@
 
   time.timeZone = "Asia/Tokyo";
 
-  environment.systemPackages = with pkgs; [ gcc git gnumake ];
+  environment.systemPackages = with pkgs; [ gcc git gnumake brightnessctl ];
 
   services.zfs.trim.enable = true;
   services.zfs.autoScrub.enable = true;
@@ -162,8 +162,21 @@
   hardware.bluetooth.enable = true;
   hardware.opentabletdriver.enable = true;
 
+  hardware.trackpoint = {
+    enable = true;
+    device = "TPPS/2 Elan TrackPoint";
+  };
+
   services.fwupd.enable = true;
 
+  services.tlp = {
+    enable = true;
+    settings = {
+      START_CHARGE_THRESH_BAT0 = 75;
+      STOP_CHARGE_THRESH_BAT0 = 80;
+    };
+  };
+
   services.keyd-qol.enable = true;
 
   services.printing.enable = true;