nixpkgs/nixos/modules/programs/bcc.nix
Joerg Thalheim 1e32fe342a 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.

(cherry picked from commit 44b6a1509d)
2017-09-29 17:10:41 +01:00

9 lines
281 B
Nix

{ config, lib, pkgs, ... }:
{
options.programs.bcc.enable = lib.mkEnableOption "bcc";
config = lib.mkIf config.programs.bcc.enable {
environment.systemPackages = [ config.boot.kernelPackages.bcc ];
boot.extraModulePackages = [ config.boot.kernelPackages.bcc ];
};
}