I have a service that uses a package. Overriding an input of that package causes it to use another insecure package, which produces an error message. The advice is to add nixpkgs.config.permittedInsecurePackages but that doesn’t help in this case. How can get rid of it?
It worked, so that’s why I’m assuming the problem is you have to do something else to allow an insecure package when doing an override instead of extraPackages. But this is not the way to go as this just adds node to path, whereas I need the override as seen in my first message
Ah, no, not at all - I just noticed you’re using pkgs.unstable, which is probably created with an overlay somewhere Maybe even using flakes?
The problem is that the nixpkgs config in your configuration.nix doesn’t apply to that nixpkgs. You need to override the config of the unstable nixpkgs in your overlay:
You are exactly right, that’s what I get for changing two things at once and when it doesn’t work assuming which change cause the issue. It works when not using the unstable overlay.