dotfiles/modules/os/misc/location.nix
eriedaberrie 3446218455 Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-11-13 02:02:37 -08:00

25 lines
464 B
Nix

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