More to the point, this is the nixpkgs manual section on the topic of allowing insecure packages: Nixpkgs 23.11 manual | Nix & NixOS
I’d still suggest finding out why this is insecure, rather than just blindly accepting it, and perhaps fixing whatever is causing it to be marked as such (which may be as simple as resolving a mismatch between user and root channels).