aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/cli
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-13 10:59:22 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-13 10:59:22 -0800
commitec28df073410ff73a1d8cf5874aee42c5a808533 (patch)
tree4b9fb329ff04cd25ebdc8a24f69f0d302fd53593 /users/fcuny/cli
parenthome-manager: install pavucontrol (diff)
downloadinfra-ec28df073410ff73a1d8cf5874aee42c5a808533.tar.gz
home-manager: install perf related tools
bcc, perf, etc
Diffstat (limited to 'users/fcuny/cli')
-rw-r--r--users/fcuny/cli/default.nix3
-rw-r--r--users/fcuny/cli/tools.nix12
2 files changed, 15 insertions, 0 deletions
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;
+}