From 7e2589b2131a34e00fd0440b35c5b484ab728531 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Fri, 16 Apr 2021 17:27:07 +0200 Subject: [PATCH] enable all magic SysRq key combinations --- nixos/configuration.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 8626413..164455f 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -190,6 +190,9 @@ in fontconfig.includeUserConf = true; }; + # Enable all sysrq functions (useful to recover from some issues): + boot.kernel.sysctl."kernel.sysrq" = 1; # NixOS default: 16 (only the sync command) + # fix nix-env memory issues boot.kernel.sysctl."vm.overcommit_memory" = "1"; # keep build-time deps around for offline-rebuilding