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 systemmain
parent
c52ea537b3
commit
efe6967e93
@ -1,9 +1,9 @@ |
||||
{ config, lib, ... }: |
||||
{ config, pkgs, lib, ... }: |
||||
{ |
||||
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 ]; |
||||
environment.systemPackages = [ pkgs.bcc ]; |
||||
boot.extraModulePackages = [ pkgs.bcc ]; |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue