From d3a4a5bd95b74e26411c7cad5dd2733deae8c2e1 Mon Sep 17 00:00:00 2001 From: Michael Peyton Jones Date: Mon, 3 Jun 2019 18:01:30 +0100 Subject: [PATCH] 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. --- nixos/modules/services/system/localtime.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/system/localtime.nix b/nixos/modules/services/system/localtime.nix index c7e897c9644..8e9286b9407 100644 --- a/nixos/modules/services/system/localtime.nix +++ b/nixos/modules/services/system/localtime.nix @@ -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 ];