{ pkgs, config, lib, ...}: { environment.systemPackages = with pkgs; [ # use the correct version of `perf` for the configured `linuxPackages` linuxpkgs.perf perf-tools flameGraph ]; # this uses correct `linuxPackages` for `bcc` programs.bcc.enable = true; }