feat(monitoring): GPU-aware btop variants and GPU metrics (#330)

This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-09-30 00:16:50 +08:00
1 parent 523f4940a7
commit 9ab5eca60c
14 files changed
+690 -10

No files matched your search

+13 -1
View File
@@ -1,9 +1,21 @@
{
pkgs,
...
}:
{
# replacement of htop/nmon
programs.btop = {
enable = true;
# On NixOS `modules.btop` installs the single GPU-aware build (or a
# CAP_PERFMON wrapper), so don't let Home Manager add a second, plain btop.
# macOS has no `modules.btop` and takes btop from Home Manager.
package = if pkgs.stdenv.hostPlatform.isDarwin then pkgs.btop else null;
settings = {
theme_background = false; # make btop transparent
# Use the terminal background so btop is transparent. No visible effect
# inside zellij yet: its panes have been opaque since 0.44
# (https://github.com/zellij-org/zellij/issues/5175), so this only shows
# when btop runs directly in a translucent terminal.
theme_background = false;
};
};
}