redshift: add geoclue config
The geoclue module now lets us set application config. This should make it more robust in desktop environments that don't define a geoclue agent. Fixes #45994.
This commit is contained in:
parent
ae71c13a92
commit
01d06dc35f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue