# modules/features/pentest/_impacket.nix — the impacket pieces, defined once.## Both python.nix (which owns the category) and ad.nix (which cannot do Active# Directory without secretsdump/ntlmrelayx/GetUserSPNs) need these. Defining# them here means both get the SAME derivation and therefore the same store# path, so installing both categories is not a profile collision.{ lib, pkgs }:
rec {
impacket= pkgs.python3Packages.impacket;
aliases= (import./_aliases.nix { inherit lib pkgs; }) {
package= impacket;
prefix="impacket";
# Read at build time from what these packages really install, so the# reserved set cannot rot. See _aliases.nix for why this matters.reservedFrom= [ pkgs.coreutils pkgs.iputils pkgs.samba pkgs.util-linux ];
# Nothing owns `mimikatz` on PATH, but the Windows mimikatz.exe in# $PAYLOADS does, as far as a tired operator is concerned.extraReserved= [ "mimikatz" ];
};
both= [ impacket aliases ];
}