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:
parent
85306ef247
commit
f1e6c6641e
1 changed files with 2 additions and 0 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue