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.nix12
1 files changed, 12 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..9a4a095b26
--- /dev/null
+++ b/users/tazjin/nixos/modules/laptop.nix
@@ -0,0 +1,12 @@
+# Configuration specifically for laptops that move around.
+{ ... }:
+
+{
+  # Automatically detect location to use for redshift
+  location.provider = "geoclue2";
+
+  # Enable power-saving features.
+  services.tlp.enable = true;
+
+  programs.light.enable = true;
+}