2014-04-24 22:32:32 +01:00
|
|
|
# GeoClue 2 daemon.
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.geoclue2 = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to enable GeoClue 2 daemon, a DBus service
|
2017-10-21 06:24:37 +01:00
|
|
|
that provides location information for accessing.
|
2014-04-24 22:32:32 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf config.services.geoclue2.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.geoclue2 ];
|
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.geoclue2 ];
|
|
|
|
|
2015-04-10 16:02:57 +01:00
|
|
|
systemd.packages = [ pkgs.geoclue2 ];
|
|
|
|
|
2014-04-24 22:32:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|