mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
|
|
cfg = config.sconfig.security-tools;
|
|
|
|
in
|
|
{
|
|
options.sconfig.security-tools = lib.mkEnableOption "Enable security tools";
|
|
|
|
config = lib.mkIf cfg {
|
|
environment.systemPackages = with pkgs; [
|
|
binutils
|
|
burpsuite
|
|
exiftool
|
|
feroxbuster
|
|
ghidra
|
|
masscan
|
|
metasploit
|
|
msfpc
|
|
nmap
|
|
openvpn
|
|
remmina
|
|
seclists
|
|
socat
|
|
thc-hydra
|
|
webshells
|
|
weevely
|
|
# wfuzz # TODO: temporarily broken package
|
|
|
|
(runCommand "gdb" { } "install -D ${gef}/bin/gef $out/bin/gdb")
|
|
];
|
|
|
|
programs.bash.interactiveShellInit = ''
|
|
alias feroxbuster="feroxbuster --no-state"
|
|
'';
|
|
|
|
system.activationScripts.seclists = ''
|
|
mkdir -m 0755 -p /usr/share
|
|
ln -sf /run/current-system/sw/share/seclists /usr/share/
|
|
'';
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
8000
|
|
8080
|
|
9999
|
|
];
|
|
|
|
programs = {
|
|
wireshark.enable = true;
|
|
wireshark.package = pkgs.wireshark;
|
|
};
|
|
};
|
|
}
|