Allow insecure and permitted insecure not having an effect

Hi, I am running ‘nix develop’ to start a shell from a flake, and in the flake I am specifying node_14 as a buildInput.

nix is complaining:

Which is, fair enough, it is old, but I need it for a project that will not be updated right now. Ive tried the suggested solutions:

and even

but it is having no effect.
I am running on MacOS, is that relevant?

This is the flake.nix

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
  };

  outputs = { self, nixpkgs, ... }: 
    let
      system = "aarch64-darwin";
      pkgs = nixpkgs.legacyPackages.${system};
    in 
    {
      devShells.${system}.default = pkgs.mkShell {
        buildInputs = with pkgs; [
          nodejs-14_x
        ];
      };
    };
}

Google my way to a solution, change the let to

   let
      system = "aarch64-darwin";
      pkgs = import nixpkgs {
        inherit system;
        config = {
          permittedInsecurePackages = [ "nodejs-14.21.3" "openssl-1.1.1w" ];
        };
      };    

That in turn lead to a different problem that I am trying to get help on here: Restricting python version from nixpkgs