Compare commits
1 Commits
2024-12-26
...
save-geocl
Author | SHA1 | Date | |
---|---|---|---|
bcd467e60e |
@@ -40,6 +40,16 @@ in
|
||||
|
||||
# sane.programs.geoclue2.enableFor.system = lib.mkIf (builtins.any (en: en) (builtins.attrValues cfg.enableFor.user)) true;
|
||||
|
||||
# prevent geoclue from modifying the GPS settings: i manage that myself, and trying to co-manage it with geoclue causes issues.
|
||||
security.polkit.extraConfig = lib.optionalString cfg.enabled ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (subject.user == "geoclue" && action.id == "org.freedesktop.ModemManager1.Device.Control") {
|
||||
return polkit.Result.NO;
|
||||
}
|
||||
});
|
||||
'';
|
||||
|
||||
|
||||
services.geoclue2 = lib.mkIf cfg.enabled {
|
||||
enable = true;
|
||||
geoProviderUrl = "http://127.0.0.1:8088/v1/geolocate"; #< ols
|
||||
|
Reference in New Issue
Block a user