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:
arcnmx 2021-09-01 20:08:55 -07:00 committed by Robert Helgesson
parent 21a2ff4496
commit bd747c5a53
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ in {
User = usercfg.home.username;
Type = "oneshot";
RemainAfterExit = "yes";
TimeoutStartSec = 90;
SyslogIdentifier = "hm-activate-${username}";
# The activation script is run by a login shell to make sure