From 67782a0996fcf70cf8ec8608f57fc061849f1780 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Wed, 29 Apr 2026 22:30:13 +0200 Subject: [PATCH] Add Linux tools (under condition) --- modules/tools.nix | 59 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 18 deletions(-) diff --git a/modules/tools.nix b/modules/tools.nix index 3d038a8..238a681 100644 --- a/modules/tools.nix +++ b/modules/tools.nix @@ -33,27 +33,50 @@ let in lib.mkMerge [ { - environment.systemPackages = with pkgs; [ - vim - git - jq + environment.systemPackages = + with pkgs; + [ + vim + git + jq + file - # Nix - nix-output-monitor # nix build -> nom build + # Nix + nix-output-monitor # nix build -> nom build + nixfmt-rfc-style - # Software debug - tcpdump - lsof - ncdu - nmap - lnav - wakeonlan + # Software debug + tcpdump + lsof + ncdu + nmap + lnav + wakeonlan - # Hardware info and tunables - smartmontools # smartctl - usbutils # lsusb - pciutils # lspci - ]; + # Hardware info and tunables + smartmontools # smartctl + usbutils # lsusb + pciutils # lspci + ] + ++ lib.optionals pkgs.stdenv.isLinux [ + # Software debug + iotop + dool # dool --time --disk -D /dev/sde,/dev/sdf --top-bio --top-cpu --zfs-arc + strace + ltrace + smem # smem -tkP nginx + + # Hardware info and tunables + parted + hdparm + efivar + efibootmgr + sg3_utils # sg_unmap + lm_sensors # sensors + nvme-cli + dmidecode + ethtool + ]; } (lib.optionalAttrs hasHtopOption {