Merge pull request #44820 from michaelpj/fix/redshift-geoclue-agents

redshift/geoclue/localtime: progress in fixing agent confusion
This commit is contained in:
Jan Tojnar
2018-08-14 17:13:09 +02:00
committed by GitHub
6 changed files with 51 additions and 21 deletions
+2 -8
View File
@@ -22,14 +22,8 @@ in {
config = mkIf cfg.enable {
services.geoclue2.enable = true;
security.polkit.extraConfig = ''
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.timedate1.set-timezone"
&& subject.user == "localtimed") {
return polkit.Result.YES;
}
});
'';
# so polkit will pick up the rules
environment.systemPackages = [ pkgs.localtime ];
users.users = [{
name = "localtimed";