From 2f3c3f3f0cb8092bc1e648b9ef95bbf935af9c05 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Mon, 6 Nov 2023 22:16:41 +0100 Subject: [PATCH] magpie/systemd: disable sleep, emergencymode; setup watchdog --- magpie/configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/magpie/configuration.nix b/magpie/configuration.nix index 04e7cf1..d557349 100644 --- a/magpie/configuration.nix +++ b/magpie/configuration.nix @@ -249,5 +249,19 @@ networking.networkmanager.enable = true; networking.wireless.enable = false; + systemd = { + enableEmergencyMode = false; + + watchdog = { + runtimeTime = "20s"; + rebootTime = "30s"; + }; + + sleep.extraConfig = '' + AllowSuspend=no + AllowHibernation=no + ''; + }; + system.stateVersion = "22.11"; }