about summary refs log tree commit diff
path: root/users/tazjin/nixos/modules/laptop.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/nixos/modules/laptop.nix')
-rw-r--r--users/tazjin/nixos/modules/laptop.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/users/tazjin/nixos/modules/laptop.nix b/users/tazjin/nixos/modules/laptop.nix
new file mode 100644
index 0000000000..da277dd3d6
--- /dev/null
+++ b/users/tazjin/nixos/modules/laptop.nix
@@ -0,0 +1,14 @@
+# Configuration specifically for laptops that move around.
+{ ... }:
+
+{
+  # Automatically detect location for redshift & timezone settings.
+  services.geoclue2.enable = true;
+  location.provider = "geoclue2";
+  services.localtime.enable = true;
+
+  # Enable power-saving features.
+  services.tlp.enable = true;
+
+  programs.light.enable = true;
+}