diff options
author | Geoffrey Huntley <ghuntley@ghuntley.com> | 2020-06-10 18:16:31 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 18:16:31 +1000 |
commit | ffa51372780ef12c5b198a9124841cf8c200d0f2 (patch) | |
tree | 89b3af156f1d74fe2cc26802eae6870ff5bd2704 /pkgs/stdenv/generic | |
parent | 496bc90c6c9b54e8200a069862e3c4fad21f9f58 (diff) | |
download | nixlib-ffa51372780ef12c5b198a9124841cf8c200d0f2.tar nixlib-ffa51372780ef12c5b198a9124841cf8c200d0f2.tar.gz nixlib-ffa51372780ef12c5b198a9124841cf8c200d0f2.tar.bz2 nixlib-ffa51372780ef12c5b198a9124841cf8c200d0f2.tar.lz nixlib-ffa51372780ef12c5b198a9124841cf8c200d0f2.tar.xz nixlib-ffa51372780ef12c5b198a9124841cf8c200d0f2.tar.zst nixlib-ffa51372780ef12c5b198a9124841cf8c200d0f2.zip |
docs: increase awareness of NIXPKGS_ALLOW_INSECURE=1
https://github.com/NixOS/nixpkgs/blob/496bc90c6c9b54e8200a069862e3c4fad21f9f58/doc/using/configuration.xml#L190
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r-- | pkgs/stdenv/generic/check-meta.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix index 21ae809a2225..c6c5be39d09b 100644 --- a/pkgs/stdenv/generic/check-meta.nix +++ b/pkgs/stdenv/generic/check-meta.nix @@ -107,8 +107,13 @@ let You can install it anyway by whitelisting 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 - a) for `nixos-rebuild` you can add ‘${getName attrs}’ to + b) for `nixos-rebuild` you can add ‘${getName attrs}’ to `nixpkgs.config.permittedInsecurePackages` in the configuration.nix, like so: @@ -118,7 +123,7 @@ let ]; } - b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add + c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add ‘${getName attrs}’ to `permittedInsecurePackages` in ~/.config/nixpkgs/config.nix, like so: |