# 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, ... }:
letoverlay=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 ];
};
}