dotfiles/nixos/systems/blowhole/watchdog.nix

8 lines
266 B
Nix
Raw Normal View History

{ ... }:
{
systemd.watchdog.runtimeTime = "60s";
systemd.watchdog.rebootTime = "10m";
systemd.watchdog.kexecTime = "5m";
systemd.services."emergency".serviceConfig.ExecStartPre = "/bin/sh -c \"read -t 30 || /run/current-system/sw/bin/systemctl reboot\"";
}