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";