1
0
Fork 0
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:
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

View file

@ -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