1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/nixos/modules/services/desktops/geoclue2.nix

42 lines
615 B
Nix
Raw Normal View History

2014-04-24 17:32:32 -04: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 ];
2015-04-10 11:02:57 -04:00
systemd.packages = [ pkgs.geoclue2 ];
2014-04-24 17:32:32 -04:00
};
}