nixpkgs/nixos/modules/services/desktops/geoclue2.nix
Michael Peyton Jones d96b0ac7f7 geoclue2: fix typo
2017-10-21 22:34:14 +01:00

42 lines
616 B
Nix

# 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 information for accessing.
'';
};
};
};
###### implementation
config = mkIf config.services.geoclue2.enable {
environment.systemPackages = [ pkgs.geoclue2 ];
services.dbus.packages = [ pkgs.geoclue2 ];
systemd.packages = [ pkgs.geoclue2 ];
};
}