From 6934145c30c407432e5043834ade5ca36c8138aa Mon Sep 17 00:00:00 2001 From: Moritz Ulrich Date: Sun, 29 Dec 2013 17:46:03 +0100 Subject: [PATCH] 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 --- nixos/modules/services/x11/redshift.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/x11/redshift.nix b/nixos/modules/services/x11/redshift.nix index bf7f974edc7..c2ee9d7f2c4 100644 --- a/nixos/modules/services/x11/redshift.nix +++ b/nixos/modules/services/x11/redshift.nix @@ -46,6 +46,7 @@ in { -t ${toString cfg.temperature.day}:${toString cfg.temperature.night} ''; environment = { DISPLAY = ":0"; }; + serviceConfig.Restart = "always"; }; }; }