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:
parent
5e641b3ffc
commit
6934145c30
|
@ -46,6 +46,7 @@ in {
|
|||
-t ${toString cfg.temperature.day}:${toString cfg.temperature.night}
|
||||
'';
|
||||
environment = { DISPLAY = ":0"; };
|
||||
serviceConfig.Restart = "always";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue