Merge pull request #62624 from michaelpj/fix/redshift-geoclue

redshift: add geoclue config
This commit is contained in:
worldofpeace 2019-06-04 22:35:25 -04:00 committed by GitHub
commit 87ec4fa2d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,13 @@ in {
# needed so that .desktop files are installed, which geoclue cares about
environment.systemPackages = [ cfg.package ];
services.geoclue2.enable = mkIf (cfg.provider == "geoclue2") true;
services.geoclue2 = mkIf (cfg.provider == "geoclue2") {
enable = true;
appConfig."redshift" = {
isAllowed = true;
isSystem = true;
};
};
systemd.user.services.redshift =
let