📦 add network packages

This commit is contained in:
Ingolf Wagner 2024-09-04 16:32:40 +07:00
parent ae3a14f5fa
commit 51e3d8df22
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
5 changed files with 36 additions and 5 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./editor.nix
./network.nix
./oh-my-posh
./packages.nix
./terminal.nix

34
homes/common/network.nix Normal file
View file

@ -0,0 +1,34 @@
{
config,
pkgs,
lib,
...
}:
with lib;
{
config = mkMerge [
{
home.packages = [
# firewall analysis
pkgs.nftables
pkgs.nixos-firewall-tool
# analyser
pkgs.dnsutils
pkgs.tcpdump
pkgs.nmap
pkgs.rustscan
# helper
pkgs.ipcalc
];
}
(mkIf config.gui.enable {
home.packages = [
pkgs.wireshark
];
})
];
}

View file

@ -10,10 +10,7 @@ with lib;
config = mkMerge [
{
home.packages = [
bind.dnsutils
nmap
hexyl
ipcalc
units
difftastic

View file

@ -2,6 +2,7 @@
imports = [
../common
];
gui.enable = false;
home.stateVersion = "22.11";

View file

@ -91,8 +91,6 @@ in
tmux
screen
tcpdump
duc
memoryUsage