mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
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
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue