Skip to content

Commit c6808c5

Browse files
authored
Merge pull request #629 from nix-community/watchdog
nixos/server: use mkDefault for watchdog settings
2 parents 7a4dc5c + 1e47533 commit c6808c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nixos/server/default.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@
9494
# the interval defined here, so every 7.5s.
9595
# If the hardware watchdog does not get a signal for 15s,
9696
# it will forcefully reboot the system.
97-
runtimeTime = "15s";
97+
runtimeTime = lib.mkDefault "15s";
9898
# Forcefully reboot if the final stage of the reboot
9999
# hangs without progress for more than 30s.
100100
# For more info, see:
101101
# https://utcc.utoronto.ca/~cks/space/blog/linux/SystemdShutdownWatchdog
102-
rebootTime = "30s";
102+
rebootTime = lib.mkDefault "30s";
103103
# Forcefully reboot when a host hangs after kexec.
104104
# This may be the case when the firmware does not support kexec.
105-
kexecTime = "1m";
105+
kexecTime = lib.mkDefault "1m";
106106
};
107107

108108
sleep.extraConfig = ''

0 commit comments

Comments
 (0)