mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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