lol

nixos/bcc: init module

Looks trival, but it is easy to make the mistake
to add linuxPackages.bcc to systemPackages,
which breaks if the not the default kernel is used.

+10
+1
nixos/modules/module-list.nix
··· 73 73 ./programs/adb.nix 74 74 ./programs/atop.nix 75 75 ./programs/bash/bash.nix 76 + ./programs/bcc.nix 76 77 ./programs/blcr.nix 77 78 ./programs/browserpass.nix 78 79 ./programs/cdemu.nix
+9
nixos/modules/programs/bcc.nix
··· 1 + { config, lib, pkgs, ... }: 2 + { 3 + options.programs.bcc.enable = lib.mkEnableOption "bcc"; 4 + 5 + config = lib.mkIf config.programs.bcc.enable { 6 + environment.systemPackages = [ config.boot.kernelPackages.bcc ]; 7 + boot.extraModulePackages = [ config.boot.kernelPackages.bcc ]; 8 + }; 9 + }