repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
nixpkgs.nixNix31 lines914 Braw download
# modules/features/pentest/nixpkgs.nix — one package set for the system and for
# the flake's own outputs.
#
# The checks in _sets.nix run against perSystem's `pkgs`, which by default is
# plain nixpkgs: no overlays, no allowUnfree. The system, meanwhile, has both.
# A check that passes against a different package set from the one the system
# builds is not a check, so this module points them at the same thing:
#
#   _overlay.nix     the fixes (see that file for why each exists)
#   allowUnfree      burpsuite, and the host already allows it
{ inputs, ... }:
let
  overlay = import ./_overlay.nix;
in
{
  perSystem =
    { system, ... }:
    {
      _module.args.pkgs = import inputs.nixpkgs {
        inherit system;
        overlays = [ overlay ];
        config.allowUnfree = true;
      };
    };

  flake.nixosModules.pentest-nixpkgs =
    { ... }:
    {
      nixpkgs.overlays = [ overlay ];
    };
}