Add htop config
This commit is contained in:
parent
26b6cd13cb
commit
5c79abd8ab
4 changed files with 54 additions and 24 deletions
|
|
@ -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
|
||||
]);
|
||||
}
|
||||
28
users/jalr/modules/cli/default.nix
Normal file
28
users/jalr/modules/cli/default.nix
Normal 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
|
||||
]);
|
||||
};
|
||||
}
|
||||
25
users/jalr/modules/cli/htop.nix
Normal file
25
users/jalr/modules/cli/htop.nix
Normal 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")
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
./3d-printing.nix
|
||||
./alacritty.nix
|
||||
./aws.nix
|
||||
./cli.nix
|
||||
./cli
|
||||
./communication
|
||||
./direnv.nix
|
||||
./dynamic-colors.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue