From 7ab6f2cd8c72e403d84ebe8974dacf0299d01cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Tue, 29 Oct 2019 22:52:37 +0000 Subject: [PATCH] bpf and bcc --- nixos/boxes/foureighty.nix | 20 ++++++++++++++++++++ nixos/common.nix | 3 +-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/nixos/boxes/foureighty.nix b/nixos/boxes/foureighty.nix index 7053e2bc..22f7cca6 100644 --- a/nixos/boxes/foureighty.nix +++ b/nixos/boxes/foureighty.nix @@ -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" diff --git a/nixos/common.nix b/nixos/common.nix index e4478a73..444bcdb6 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -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";