mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-30 18:03:58 +01:00
feat(monitoring): GPU-aware btop variants and GPU metrics (#330)
This commit is contained in:
1 parent
523f4940a7
commit
9ab5eca60c
14 files changed
+690
-10
No files matched your search
+13
-1
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user