From 826cfdf43ffb123c9d02ed0d3a97aa896ab2e523 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 21 Jun 2023 16:23:16 +0200 Subject: [PATCH] Set perf paranoid to 0 by default --- m/common/boot.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/m/common/boot.nix b/m/common/boot.nix index ca18e0e..c93d5cc 100644 --- a/m/common/boot.nix +++ b/m/common/boot.nix @@ -18,6 +18,10 @@ "console=ttyS0,115200" ]; + boot.kernel.sysctl = { + "kernel.perf_event_paranoid" = lib.mkDefault 0; + }; + boot.kernelPackages = pkgs.linuxPackages_latest; #boot.kernelPatches = lib.singleton {