From ec28df073410ff73a1d8cf5874aee42c5a808533 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 13 Feb 2022 10:59:22 -0800 Subject: home-manager: install perf related tools bcc, perf, etc --- users/fcuny/cli/default.nix | 3 +++ users/fcuny/cli/tools.nix | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 users/fcuny/cli/tools.nix (limited to 'users/fcuny') diff --git a/users/fcuny/cli/default.nix b/users/fcuny/cli/default.nix index ff2b89f..5259014 100644 --- a/users/fcuny/cli/default.nix +++ b/users/fcuny/cli/default.nix @@ -6,10 +6,13 @@ ./go.nix ./tmux.nix ./zsh.nix + ./tools.nix ]; home.packages = [ pkgs.jq pkgs.ripgrep ]; + + programs.perftools.enable = true; } diff --git a/users/fcuny/cli/tools.nix b/users/fcuny/cli/tools.nix new file mode 100644 index 0000000..bd38c72 --- /dev/null +++ b/users/fcuny/cli/tools.nix @@ -0,0 +1,12 @@ +{ 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; +} -- cgit 1.4.1