mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-31 05:12:02 +00:00
22 lines
415 B
Nix
22 lines
415 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
|
|
config = lib.mkIf pkgs.stdenv.isLinux {
|
|
|
|
services.tzupdate.enable = true;
|
|
|
|
# Service to determine location for time zone
|
|
# This is required for redshift which depends on the location provider
|
|
services.geoclue2.enable = true;
|
|
services.geoclue2.enableWifi = false; # Breaks when it can't connect
|
|
location = {
|
|
provider = "geoclue2";
|
|
};
|
|
};
|
|
}
|