nixpkgs/nixos/modules/services/desktops/geoclue2.nix

40 lines
572 B
Nix
Raw Normal View History

2014-04-24 23:32:32 +02: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
that provides location informationfor accessing.
'';
};
};
};
###### implementation
config = mkIf config.services.geoclue2.enable {
environment.systemPackages = [ pkgs.geoclue2 ];
services.dbus.packages = [ pkgs.geoclue2 ];
};
}