about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-12-21 22:28:27 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-12-21 22:28:27 +0100
commit69a0060623b2e3b90dc6c00734d655dfdfed38ed (patch)
treee1084a2ecafdf07be716df5cb56924ca12115355 /modules
parent50ad4de5dea2695e36558b1da4410ca61b189a63 (diff)
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules')
-rw-r--r--modules/user/aszlig/profiles/workstation/default.nix2
1 files changed, 1 insertions, 1 deletions
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