enable sysdig and also bpf debugging stuff

This commit is contained in:
xunuwu 2026-01-06 02:31:42 +01:00
parent b202b61c50
commit 1301a4b402
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
2 changed files with 12 additions and 1 deletions

View file

@ -15,7 +15,16 @@
hardware.i2c.enable = true;
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelPatches = lib.singleton {
name = "ebpf-config";
patch = null;
structuredExtraConfig = with lib.kernel; {
BPF_KPROBE_OVERRIDE = yes;
FUNCTION_ERROR_INJECTION = yes;
};
};
# using lts for now
# kernelPackages = pkgs.linuxPackages_latest;
initrd = {
verbose = false;
availableKernelModules = [