Split out hm/common
I went nuclear...
This commit is contained in:
parent
033f411060
commit
4412180b3a
17 changed files with 345 additions and 307 deletions
35
hm/monitoring/default.nix
Normal file
35
hm/monitoring/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
config = {
|
||||
home.packages = with pkgs; [
|
||||
htop
|
||||
iftop
|
||||
iotop
|
||||
lsof
|
||||
progress
|
||||
pv
|
||||
speedtest-cli
|
||||
strace
|
||||
];
|
||||
programs.bash.shellAliases = {
|
||||
iftop = "iftop -c ${config.xdg.configHome}/iftoprc";
|
||||
tracefiles = ''${pkgs.strace}/bin/strace -f -t -e trace=file'';
|
||||
};
|
||||
xdg = {
|
||||
configFile = {
|
||||
"iftoprc" = {
|
||||
text = ''
|
||||
port-resolution: no
|
||||
promiscuous: no
|
||||
port-display: on
|
||||
link-local: yes
|
||||
use-bytes: yes
|
||||
show-totals: yes
|
||||
log-scale: yes
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue