From 41bf99bd9eac48bf3ddf06e567d1bdfef8e51a36 Mon Sep 17 00:00:00 2001
From: Vincent Ambo <tazjin@google.com>
Date: Sun, 24 May 2020 17:32:48 +0100
Subject: [PATCH] feat(ops/nixos/nugget): Add sysctl setting necessary for perf

---
 ops/nixos/nugget/default.nix | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ops/nixos/nugget/default.nix b/ops/nixos/nugget/default.nix
index d4356901a..6bfca391d 100644
--- a/ops/nixos/nugget/default.nix
+++ b/ops/nixos/nugget/default.nix
@@ -39,6 +39,10 @@ in depot.lib.fix(self: {
       availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
       kernelModules = [ "dm-snapshot" ];
     };
+
+    kernel.sysctl = {
+      "kernel.perf_event_paranoid" = 1;
+    };
   };
 
   nix = {