about summary refs log tree commit diff
path: root/ops/nixos/nugget/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-24T16·32+0100
committerVincent Ambo <tazjin@google.com>2020-05-24T16·32+0100
commit41bf99bd9eac48bf3ddf06e567d1bdfef8e51a36 (patch)
tree247e881f52a42533fe857bd28a53066e4b909e12 /ops/nixos/nugget/default.nix
parentd53f0a2d057fb08fbe387b77fda68c39bbd8374c (diff)
feat(ops/nixos/nugget): Add sysctl setting necessary for perf r/837
Diffstat (limited to 'ops/nixos/nugget/default.nix')
-rw-r--r--ops/nixos/nugget/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/ops/nixos/nugget/default.nix b/ops/nixos/nugget/default.nix
index d4356901ab3b..6bfca391d9b8 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 = {