bpf and bcc

This commit is contained in:
Cyryl Płotnicki 2019-10-29 22:52:37 +00:00
parent 7d4403fd07
commit 7ab6f2cd8c
2 changed files with 21 additions and 2 deletions

View file

@ -5,6 +5,26 @@
boot = {
kernelPackages = pkgs.linuxPackages_hardened;
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
kernelPatches = [{
name = "bpf";
patch = null;
extraConfig = ''
BPF y
BPF_EVENTS y
BPF_JIT y
BPF_SYSCALL y
DUMMY m
HAVE_EBPF_JIT y
KALLSYMS_ALL y
NET_ACT_BPF m
NET_ACT_GACT m
NET_ACT_POLICE m
NET_CLS_BPF m
NET_SCH_SFQ m
VXLAN m
'';}
];
initrd.kernelModules = [ "i915" ];
initrd.availableKernelModules = [
"aes_x86_64"

View file

@ -29,8 +29,7 @@ in
};
environment.systemPackages = with pkgs; [
wget git gnupg curl tmux python36Packages.glances htop atop firefox home-manager alacritty pciutils powertop
wget git gnupg curl tmux python36Packages.glances htop atop firefox home-manager alacritty pciutils powertop linuxPackages_hardened.bcc
];
i18n.defaultLocale = "en_GB.UTF-8";