dacbert, radiobert: globalize systemd.watchdog configuration
This commit is contained in:
parent
2f14ccc517
commit
fe58dc6cdd
|
@ -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;
|
||||||
|
|
|
@ -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. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
|
@ -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 ];
|
||||||
|
|
Loading…
Reference in New Issue