diff options
author | Moritz Ulrich <moritz@tarn-vedra.de> | 2013-12-29 17:46:03 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2013-12-29 21:19:19 +0100 |
commit | 6934145c30c407432e5043834ade5ca36c8138aa (patch) | |
tree | c68dbccda4bdfc82ee283c877456bf8288edd0b9 /nixos/modules/services/x11/redshift.nix | |
parent | 5e641b3ffca04908c130c4d7bf1da4c3ef74164d (diff) | |
download | nixlib-6934145c30c407432e5043834ade5ca36c8138aa.tar nixlib-6934145c30c407432e5043834ade5ca36c8138aa.tar.gz nixlib-6934145c30c407432e5043834ade5ca36c8138aa.tar.bz2 nixlib-6934145c30c407432e5043834ade5ca36c8138aa.tar.lz nixlib-6934145c30c407432e5043834ade5ca36c8138aa.tar.xz nixlib-6934145c30c407432e5043834ade5ca36c8138aa.tar.zst nixlib-6934145c30c407432e5043834ade5ca36c8138aa.zip |
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>
Diffstat (limited to 'nixos/modules/services/x11/redshift.nix')
-rw-r--r-- | nixos/modules/services/x11/redshift.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/redshift.nix b/nixos/modules/services/x11/redshift.nix index bf7f974edc7b..c2ee9d7f2c4b 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"; }; }; } |