mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
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 ];
|
|
};
|
|
}
|