Skip to content

Commit

Permalink
Reboot servers on kernel panic
Browse files Browse the repository at this point in the history
  • Loading branch information
kip93 committed Dec 3, 2023
1 parent 61b0a76 commit af2660c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/server/kernel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@

{ self, ... } @ _inputs:
{ pkgs, ... }: {
config.boot.kernelPackages = self.lib.mkDefault pkgs.linuxPackages_hardened;
config.boot = {
kernelPackages = self.lib.mkDefault pkgs.linuxPackages_hardened;
kernelParams = [ "panic=5" ];
};
}

0 comments on commit af2660c

Please sign in to comment.