From 69a0060623b2e3b90dc6c00734d655dfdfed38ed Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 21 Dec 2015 22:28:27 +0100 Subject: profiles/workstation: Reboot 30m after panic Just happened to have a kernel panic on mmrnmhrm and no way to physically access the machine, which is quite a bummer. While we can't prevent kernel panics, we can at least prevent the machine to hang indefinitely. Signed-off-by: aszlig --- modules/user/aszlig/profiles/workstation/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix index f5dde8f4..fda16cca 100644 --- a/modules/user/aszlig/profiles/workstation/default.nix +++ b/modules/user/aszlig/profiles/workstation/default.nix @@ -12,7 +12,7 @@ in { config = lib.mkIf cfg.enable { vuizvui.user.aszlig.profiles.base.enable = true; - boot.kernelParams = [ "zswap.enabled=1" ]; + boot.kernelParams = [ "zswap.enabled=1" "panic=1800" ]; boot.cleanTmpDir = true; environment.systemPackages = with lib; let -- cgit 1.4.1