Skip to content

Commit

Permalink
nixos: add timeout to hm-activate service
Browse files Browse the repository at this point in the history
Oneshot services do not have a timeout by default, so a misbehaving
activation script can stall and prevent a system from ever booting.
  • Loading branch information
arcnmx authored and rycee committed Sep 4, 2021
1 parent 21a2ff4 commit bd747c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/default.nix
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bd747c5

Please sign in to comment.