diff options
author | Michael Peyton Jones <me@michaelpj.com> | 2018-08-09 15:17:43 +0100 |
---|---|---|
committer | Michael Peyton Jones <me@michaelpj.com> | 2018-08-14 15:53:39 +0100 |
commit | a1762065c3696530789109d37781dedb0400e140 (patch) | |
tree | 36b1561bff775b1b6d165a5cd700088adbc37055 /nixos/modules/services/x11/redshift.nix | |
parent | 2428f5dda13475afba2dee93f4beb2bd97086930 (diff) | |
download | nixpkgs-a1762065c3696530789109d37781dedb0400e140.tar nixpkgs-a1762065c3696530789109d37781dedb0400e140.tar.gz nixpkgs-a1762065c3696530789109d37781dedb0400e140.tar.bz2 nixpkgs-a1762065c3696530789109d37781dedb0400e140.tar.lz nixpkgs-a1762065c3696530789109d37781dedb0400e140.tar.xz nixpkgs-a1762065c3696530789109d37781dedb0400e140.tar.zst nixpkgs-a1762065c3696530789109d37781dedb0400e140.zip |
redshift: install desktop files, and use absolute paths in them to avoid confusing geoclue agent
Diffstat (limited to 'nixos/modules/services/x11/redshift.nix')
-rw-r--r-- | nixos/modules/services/x11/redshift.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/redshift.nix b/nixos/modules/services/x11/redshift.nix index 30d853841ea..b7dd7debcb6 100644 --- a/nixos/modules/services/x11/redshift.nix +++ b/nixos/modules/services/x11/redshift.nix @@ -116,6 +116,9 @@ in { } ]; + # needed so that .desktop files are installed, which geoclue cares about + environment.systemPackages = [ cfg.package ]; + services.geoclue2.enable = mkIf (cfg.provider == "geoclue2") true; systemd.user.services.redshift = |