nixos/thinkfan: add setting

the thinkfan service failed from time to time on my t440s, so I added
restart on fail to the systemd service.
This commit is contained in:
kalle 2023-11-30 18:23:25 +01:00
parent 85306ef247
commit f1e6c6641e

View file

@ -217,6 +217,8 @@ in {
systemd.services = {
thinkfan.environment.THINKFAN_ARGS = escapeShellArgs ([ "-c" configFile ] ++ cfg.extraArgs);
thinkfan.serviceConfig.Restart = "on-failure";
thinkfan.serviceConfig.RestartSec = "30s";
# must be added manually, see issue #81138
thinkfan.wantedBy = [ "multi-user.target" ];