nixos: add timeout to hm-activate service
Oneshot services do not have a timeout by default, so a misbehaving activation script can stall and prevent a system from ever booting.
This commit is contained in:
parent
21a2ff4496
commit
bd747c5a53
|
@ -141,6 +141,7 @@ in {
|
||||||
User = usercfg.home.username;
|
User = usercfg.home.username;
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = "yes";
|
RemainAfterExit = "yes";
|
||||||
|
TimeoutStartSec = 90;
|
||||||
SyslogIdentifier = "hm-activate-${username}";
|
SyslogIdentifier = "hm-activate-${username}";
|
||||||
|
|
||||||
# The activation script is run by a login shell to make sure
|
# The activation script is run by a login shell to make sure
|
||||||
|
|
Loading…
Reference in a new issue