6

The systemd stop job timeout defaults to 90s. Does NixOS have a configuration parameter to change this value?

2 Answers 2

7

Add the following to your configuration.nix:

systemd.extraConfig = ''
  DefaultTimeoutStopSec=10s
'';
0

I don't know about NixOS specifically, but man systemd-system.conf for me lists DefaultTimeoutStopSec= as the default timeout for ... stopping of units. A local administrator would typically change this in /etc/systemd/system.conf. A Unit can have its own TimeoutStopSec= value.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .