Add htop config

This commit is contained in:
Jakob Lechner 2024-05-28 21:13:47 +02:00
parent 26b6cd13cb
commit 5c79abd8ab
4 changed files with 54 additions and 24 deletions

View file

@ -1,23 +0,0 @@
{ nixosConfig, lib, pkgs, ... }:
{
home.packages = with pkgs; [
cached-nix-shell
eza
file
htop
inetutils
jq
lsof
ncdu
ripgrep
unzip
] ++ (if ! nixosConfig.jalr.workstation.enable then [ ] else [
direnv
dnsutils
screen
speedtest-cli
usbutils
wget
yt-dlp
]);
}

View file

@ -0,0 +1,28 @@
{ nixosConfig, lib, pkgs, ... }:
{
imports = [
./htop.nix
];
config = {
home.packages = with pkgs; [
cached-nix-shell
eza
file
inetutils
jq
lsof
ncdu
ripgrep
unzip
] ++ (if ! nixosConfig.jalr.workstation.enable then [ ] else [
direnv
dnsutils
screen
speedtest-cli
usbutils
wget
yt-dlp
]);
};
}

View file

@ -0,0 +1,25 @@
{ nixosConfig
, config
, lib
, ...
}:
{
programs.htop = {
enable = true;
settings = {
color_scheme = 6;
} // (with config.lib.htop; leftMeters ([
(bar "LeftCPUs")
(bar "Memory")
] ++ lib.lists.optional nixosConfig.zramSwap.enable (bar "Zram") ++ [
] ++ lib.lists.optional (!(nixosConfig.swapDevices == [ ])) (bar "Swap") ++ [
(bar "DiskIO")
])) // (with config.lib.htop; rightMeters [
(bar "RightCPUs")
(text "Tasks")
(text "LoadAverage")
(text "NetworkIO")
]);
};
}

View file

@ -5,7 +5,7 @@
./3d-printing.nix
./alacritty.nix
./aws.nix
./cli.nix
./cli
./communication
./direnv.nix
./dynamic-colors.nix