Hello there,
I’m trying to update my flake based installation of NixOS. When doing the nixos-rebuild switch
I get this error:
error: Package ‘electron-27.3.11’ in /nix/store/l6spwdi1xs20q24fqfi3xwxx0d2x9q2m-source/pkgs/development/tools/electron/binary/generic.nix:36 is marked as insecure, refusing to evaluate.
Known issues:
- Electron version 27.3.11 is EOL
You can install it anyway by allowing this package, using the
following methods:
a) To temporarily allow all insecure packages, you can use an environment
variable for a single invocation of the nix tools:
$ export NIXPKGS_ALLOW_INSECURE=1
Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
then pass `--impure` in order to allow use of environment variables.
b) for `nixos-rebuild` you can add ‘electron-27.3.11’ to
`nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
like so:
{
nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11"
];
}
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
‘electron-27.3.11’ to `permittedInsecurePackages` in
~/.config/nixpkgs/config.nix, like so:
{
permittedInsecurePackages = [
"electron-27.3.11"
];
Now, I don’t know which one of my packages needs this. So I wanted to know, how can I track back this dependency ?
Thanks !