dacbert, radiobert: globalize systemd.watchdog configuration

This commit is contained in:
Astro 2021-09-27 22:23:28 +02:00
parent 2f14ccc517
commit fe58dc6cdd
3 changed files with 7 additions and 12 deletions

View File

@ -103,12 +103,6 @@
extraGroups = [ "wheel" "audio" ]; extraGroups = [ "wheel" "audio" ];
}; };
# Reboot on hang
systemd.watchdog = {
runtimeTime = "10s";
rebootTime = "15s";
};
hardware.pulseaudio = { hardware.pulseaudio = {
enable = true; enable = true;
systemWide = true; systemWide = true;

View File

@ -159,12 +159,6 @@
SUBSYSTEM=="usb", MODE:="0666" SUBSYSTEM=="usb", MODE:="0666"
''; '';
# Reboot on hang
systemd.watchdog = {
runtimeTime = "10s";
rebootTime = "15s";
};
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave

View File

@ -251,6 +251,13 @@ in {
''; '';
time.timeZone = lib.mkDefault "Europe/Berlin"; time.timeZone = lib.mkDefault "Europe/Berlin";
# Reboot on hang
systemd.watchdog = lib.mkIf (!config.boot.isContainer) {
runtimeTime = "10s";
rebootTime = "15s";
};
}; };
meta.maintainers = with lib.maintainers; [ ehmry ]; meta.maintainers = with lib.maintainers; [ ehmry ];