summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-06-04 22:36:28 -0400
committerGitHub <noreply@github.com>2019-06-04 22:36:28 -0400
commitcc5ec447a0cfd14082225fa7eda7e7c1f8aadcd0 (patch)
treef5fdaef89527f3974cfe9f1a9781b417f0cdc1e1 /nixos
parent87ec4fa2d130006e5cf87a813c8f2f03fec399d3 (diff)
parentd3a4a5bd95b74e26411c7cad5dd2733deae8c2e1 (diff)
Merge pull request #62623 from michaelpj/fix/localtime-geoclue
localtime: set geoclue config
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/system/localtime.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/system/localtime.nix b/nixos/modules/services/system/localtime.nix
index c7e897c96448..8e9286b94078 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 ];