localtime: set geoclue config

The geoclue module now lets us set application config. This should make
it more robust in environments that don't provide a geoclue agent.

Fixes #44725.
This commit is contained in:
Michael Peyton Jones 2019-06-03 18:01:30 +01:00
parent ae71c13a92
commit d3a4a5bd95
No known key found for this signature in database
GPG key ID: 86A43C24A728F66D

View file

@ -20,7 +20,13 @@ in {
};
config = mkIf cfg.enable {
services.geoclue2.enable = true;
services.geoclue2 = {
enable = true;
appConfig."localtime" = {
isAllowed = true;
isSystem = true;
};
};
# so polkit will pick up the rules
environment.systemPackages = [ pkgs.localtime ];