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:
parent
ae71c13a92
commit
d3a4a5bd95
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user