efe6967e93
bcc doesn't really need kernel itself, it just cares about module path. It's actually better to use /run/booted-system/kernel-modules/lib/modules for two reasons: - no need to rebuild bcc for each new kernel - can use a newer bcc with a booted kernel that doesn't match the current system
10 lines
237 B
Nix
10 lines
237 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
options.programs.bcc.enable = lib.mkEnableOption "bcc";
|
|
|
|
config = lib.mkIf config.programs.bcc.enable {
|
|
environment.systemPackages = [ pkgs.bcc ];
|
|
boot.extraModulePackages = [ pkgs.bcc ];
|
|
};
|
|
}
|