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

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-08-30 23:02:03 -07:00

16 lines
282 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;
location.provider = "geoclue2";
services.localtimed.enable = true;
};
}