Files
nix-config/users/modules/cli/btop.nix

35 lines
728 B
Nix
Raw Normal View History

2026-01-25 16:19:09 +01:00
{
pkgs,
config,
...
}: let
inherit (config.home) gpuType;
in {
2025-05-04 02:47:36 +02:00
programs.btop = {
enable = true;
2026-01-25 16:19:09 +01:00
package =
if gpuType != null
then
pkgs.btop.override {
rocmSupport = gpuType == "amd";
cudaSupport = gpuType == "nvidia";
}
else pkgs.btop;
2025-05-04 02:47:36 +02:00
settings = {
color_theme = "${pkgs.btop}/share/btop/themes/nord.theme";
cpu_bottom = false;
cpu_sensor = "auto";
io_graph_combined = false;
io_mode = true;
only_physical = true;
proc_tree = true;
rounded_corners = true;
show_disks = true;
show_gpu_info = "on";
show_uptime = true;
theme_background = true;
vim_keys = false;
};
};
}