dotfiles/nixos/systems/blowhole/watchdog.nix
Magic_RB fed32ecfca Possibly functional blowhole configuration
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-06-16 16:08:09 +02:00

8 lines
266 B
Nix

{ ... }:
{
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\"";
}