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
|
|
|
|
2025-01-19 17:44:00 -05:00
|
|
|
services.tzupdate.enable = true;
|
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
# Service to determine location for time zone
|
2025-01-19 17:44:00 -05:00
|
|
|
# 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
|
|
|
}
|