nichts/modules/tui/btop.nix

32 lines
674 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
lib,
...
}:
with lib; let
cfg = config.modules.programs.btop;
username = config.modules.other.system.username;
2024-04-10 17:39:26 +02:00
in {
options.modules.programs.btop.enable = mkEnableOption "btop";
2024-04-10 17:39:26 +02:00
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.btop = {
enable = true;
settings = {
theme_background = false;
vim_keys = true;
update_ms = 1000;
cpu_single_graph = true;
clock_format = "%X";
use_fstab = true;
io_mode = true;
net_sync = true;
net_iface = "enp4s0";
log_level = "WARNING";
2024-04-10 17:39:26 +02:00
};
};
2024-04-10 17:39:26 +02:00
};
};
2024-04-10 17:39:26 +02:00
}