nixos-config/modules/tools.nix
2023-11-14 16:05:26 +01:00

71 lines
1.7 KiB
Nix

{ config, pkgs, ... }:
{
programs = {
adb.enable = pkgs.stdenv.isx86_64 && config.sbruder.full;
# TODO 23.11: use option again
#bandwhich.enable = true;
iotop.enable = true;
wireshark = {
enable = config.sbruder.gui.enable && config.sbruder.full;
package = pkgs.wireshark;
};
};
# TODO 23.11: see above
security.wrappers.bandwhich = {
owner = "root";
group = "root";
capabilities = "cap_net_raw,cap_net_admin+ep";
source = "${pkgs.unstable.bandwhich}/bin/bandwhich";
};
environment.systemPackages = with pkgs; [
# top like tools
bmon # network monitor
mtr # interactive traceroute
# batch processing/automation
jq # sed for json
# file tools
compsize # btrfs compression statistics
dos2unix # convert CRLF (dos) or CR (classic mac) line endings to LF (unix)
file # file type
ncdu # interactive du
pipe-rename # interactive (in editor) renaming
rename # sed for filenames
ripgrep # better grep
sqlite-interactive # cli for sqlite databases
wget # download tool
# encryption tools
ssh-to-pgp # convert ssh host-key to pgp key
# network tools
dnsutils # dig
iperf
iperf2 # bandwidth measurement tool
nmap # port scanner
vnstat # client for vnstatd
# system tools
dmidecode # hardware information
hdparm # hard drive management
lm_sensors # temperature sensors
parted # partition manager
pciutils # lspci
reptyr # move process to current terminal
smartmontools # hard drive monitoring
tcpdump # package inspector
tio # serial console
usbutils # lsusb
# eye candy
ccze # log coloriser
# helpers
rlwrap # readline wrapper
];
}