mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
42 lines
615 B
Nix
42 lines
615 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 informationfor accessing.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.geoclue2.enable {
|
|
|
|
environment.systemPackages = [ pkgs.geoclue2 ];
|
|
|
|
services.dbus.packages = [ pkgs.geoclue2 ];
|
|
|
|
systemd.packages = [ pkgs.geoclue2 ];
|
|
|
|
};
|
|
|
|
}
|