From bd747c5a53e6f0df368066788be26e9934620bcb Mon Sep 17 00:00:00 2001 From: arcnmx Date: Wed, 1 Sep 2021 20:08:55 -0700 Subject: [PATCH] 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. --- nixos/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/default.nix b/nixos/default.nix index e5c6cd2f..626b66d9 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -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