35 lines
808 B
Nix
35 lines
808 B
Nix
{ user, home }:
|
|
{ lib, pkgs, ... }:
|
|
{
|
|
home-manager.users.${user} = {
|
|
programs.btop = {
|
|
enable = true;
|
|
settings = {
|
|
color_theme = "matugen";
|
|
theme_background = false;
|
|
presets = "";
|
|
vim_keys = true;
|
|
shown_boxes = "cpu mem net proc gpu0 gpu1";
|
|
update_ms = 1000;
|
|
proc_tree = true;
|
|
cpu_single_graph = true;
|
|
disks_filter = "/ /nix /persist";
|
|
};
|
|
};
|
|
|
|
theme = {
|
|
template.".config/btop/themes/matugen.theme".source = ./theme.theme;
|
|
|
|
reloadExtraConfig = "${
|
|
lib.meta.getExe (
|
|
pkgs.writeShellApplication {
|
|
name = "reload-btop";
|
|
runtimeInputs = with pkgs; [ procps ];
|
|
text = "exec pkill btop -SIGUSR2";
|
|
}
|
|
)
|
|
} &";
|
|
};
|
|
};
|
|
}
|