mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01: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
9 lines
237 B
Nix
9 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 ];
|
|
};
|
|
}
|