at 17.09-beta 615 B view raw
1# GeoClue 2 daemon. 2 3{ config, lib, pkgs, ... }: 4 5with lib; 6 7{ 8 9 ###### interface 10 11 options = { 12 13 services.geoclue2 = { 14 15 enable = mkOption { 16 type = types.bool; 17 default = false; 18 description = '' 19 Whether to enable GeoClue 2 daemon, a DBus service 20 that provides location informationfor accessing. 21 ''; 22 }; 23 24 }; 25 26 }; 27 28 29 ###### implementation 30 31 config = mkIf config.services.geoclue2.enable { 32 33 environment.systemPackages = [ pkgs.geoclue2 ]; 34 35 services.dbus.packages = [ pkgs.geoclue2 ]; 36 37 systemd.packages = [ pkgs.geoclue2 ]; 38 39 }; 40 41}