perf: allow more for users

main
Motiejus Jakštys 2024-03-13 14:32:34 +02:00 committed by Motiejus Jakštys
parent b35a2ab8e4
commit 3ff33aab35
1 changed files with 4 additions and 1 deletions

View File

@ -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;
};