1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

services.redshift: Enable auto-restart.

The redshift service stops working after some time (the program exits
after some hours/days). It looks like these exits are related to calls
to xrandr (for multiple displays) or suspend-to-ram.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
This commit is contained in:
Moritz Ulrich 2013-12-29 17:46:03 +01:00 committed by Bjørn Forsman
parent 5e641b3ffc
commit 6934145c30

View file

@ -46,6 +46,7 @@ in {
-t ${toString cfg.temperature.day}:${toString cfg.temperature.night}
'';
environment = { DISPLAY = ":0"; };
serviceConfig.Restart = "always";
};
};
}