dacbert, radiobert: globalize systemd.watchdog configuration
This commit is contained in:
parent
2f14ccc517
commit
fe58dc6cdd
|
@ -103,12 +103,6 @@
|
|||
extraGroups = [ "wheel" "audio" ];
|
||||
};
|
||||
|
||||
# Reboot on hang
|
||||
systemd.watchdog = {
|
||||
runtimeTime = "10s";
|
||||
rebootTime = "15s";
|
||||
};
|
||||
|
||||
hardware.pulseaudio = {
|
||||
enable = true;
|
||||
systemWide = true;
|
||||
|
|
|
@ -159,12 +159,6 @@
|
|||
SUBSYSTEM=="usb", MODE:="0666"
|
||||
'';
|
||||
|
||||
# Reboot on hang
|
||||
systemd.watchdog = {
|
||||
runtimeTime = "10s";
|
||||
rebootTime = "15s";
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
|
|
|
@ -251,6 +251,13 @@ in {
|
|||
'';
|
||||
|
||||
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 ];
|
||||
|
|
Loading…
Reference in New Issue