dotfiles/modules/nixos/system/timezone.nix

22 lines
415 B
Nix
Raw Normal View History

2024-04-20 09:42:06 -04:00
{
config,
pkgs,
lib,
...
}:
{
2022-04-25 21:54:53 -04:00
2022-12-21 14:18:03 -07:00
config = lib.mkIf pkgs.stdenv.isLinux {
2022-04-25 21:54:53 -04:00
services.tzupdate.enable = true;
2022-12-21 14:18:03 -07:00
# Service to determine location for time zone
# This is required for redshift which depends on the location provider
2022-12-21 14:18:03 -07:00
services.geoclue2.enable = true;
services.geoclue2.enableWifi = false; # Breaks when it can't connect
2024-04-20 09:42:06 -04:00
location = {
provider = "geoclue2";
};
2022-12-21 14:18:03 -07:00
};
2022-04-25 21:54:53 -04:00
}