tvl-depot/users/tazjin/nixos/modules/laptop.nix
Vincent Ambo c50f14fb1c feat(tazjin/laptop): Enable geoclue2 for redshift & localtime
Change-Id: I716e67ae32072de998c6f4e970b9dd34c5a92032
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5567
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2022-05-10 15:03:49 +00:00

14 lines
344 B
Nix

# 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;
}