dotfiles/nixos/systems/blowhole/watchdog.nix
magic_rb aff0158ef7
Reformat the whole flake using alejandra
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-03-02 22:17:03 +01:00

6 lines
262 B
Nix

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