From 3ff33aab3571c62dfba6faa584ce31aa1fad11ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 13 Mar 2024 14:32:34 +0200 Subject: [PATCH] perf: allow more for users --- modules/base/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/base/default.nix b/modules/base/default.nix index d14623d..56f878d 100644 --- a/modules/base/default.nix +++ b/modules/base/default.nix @@ -42,7 +42,10 @@ in { config = { boot = { # https://github.com/NixOS/nixpkgs/issues/83694#issuecomment-605657381 - kernel.sysctl."kernel.sysrq" = "438"; + kernel.sysctl = { + "kernel.sysrq" = "438"; + "kernel.perf_event_paranoid" = "-1"; + }; kernelPackages = lib.mkDefault pkgs.zfs.latestCompatibleLinuxPackages; };