bpf and bcc
This commit is contained in:
parent
7d4403fd07
commit
7ab6f2cd8c
2 changed files with 21 additions and 2 deletions
|
@ -5,6 +5,26 @@
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_hardened;
|
kernelPackages = pkgs.linuxPackages_hardened;
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
|
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.kernelModules = [ "i915" ];
|
||||||
initrd.availableKernelModules = [
|
initrd.availableKernelModules = [
|
||||||
"aes_x86_64"
|
"aes_x86_64"
|
||||||
|
|
|
@ -29,8 +29,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
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";
|
i18n.defaultLocale = "en_GB.UTF-8";
|
||||||
|
|
Loading…
Reference in a new issue