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:
committed by
Bjørn Forsman
parent
5e641b3ffc
commit
6934145c30
@@ -46,6 +46,7 @@ in {
|
|||||||
-t ${toString cfg.temperature.day}:${toString cfg.temperature.night}
|
-t ${toString cfg.temperature.day}:${toString cfg.temperature.night}
|
||||||
'';
|
'';
|
||||||
environment = { DISPLAY = ":0"; };
|
environment = { DISPLAY = ":0"; };
|
||||||
|
serviceConfig.Restart = "always";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user