about summary refs log tree commit diff
path: root/users/wpcarro/nixos/modules
diff options
context:
space:
mode:
Diffstat (limited to 'users/wpcarro/nixos/modules')
-rw-r--r--users/wpcarro/nixos/modules/laptop.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/users/wpcarro/nixos/modules/laptop.nix b/users/wpcarro/nixos/modules/laptop.nix
new file mode 100644
index 000000000000..03dd0f39bb81
--- /dev/null
+++ b/users/wpcarro/nixos/modules/laptop.nix
@@ -0,0 +1,15 @@
+# Laptop-specific NixOS configuration.
+_:
+
+{
+  # Automatically detect location for redshift.
+  services.geoclue2.enable = true;
+  location.provider = "geoclue2";
+
+  # Enable power-saving features.
+  powerManagement.powertop.enable = true;
+
+  # Backlight control command.
+  programs.light.enable = true;
+}
+