dotfiles/modules/os/misc/location.nix

25 lines
464 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
cfg = config.my.location;
in {
options.my.location = {
enable = lib.mkEnableOption null;
};
config = lib.mkIf cfg.enable {
services.geoclue2 = {
enable = true;
appConfig = {
"gammastep" = {
isAllowed = true;
isSystem = true;
};
};
};
location.provider = "geoclue2";
services.automatic-timezoned.enable = true;
services.tzupdate.enable = true;
};
}