2022-01-29 12:47:38 +01:00
|
|
|
{ pkgs, lib, config, options, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.modules.services.geoclue2;
|
|
|
|
in {
|
|
|
|
options.modules.services.geoclue2 = {
|
|
|
|
enable = mkOption {
|
2022-04-20 10:53:28 +02:00
|
|
|
type = types.bool;
|
2022-01-29 12:47:38 +01:00
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.geoclue2.enable = true;
|
|
|
|
};
|
|
|
|
}
|