Merge pull request #90031 from ghuntley/patch-2
docs: increase awareness of NIXPKGS_ALLOW_INSECURE=1
This commit is contained in:
commit
0e1384f109
@ -108,7 +108,12 @@ let
|
|||||||
You can install it anyway by whitelisting this package, using the
|
You can install it anyway by whitelisting this package, using the
|
||||||
following methods:
|
following methods:
|
||||||
|
|
||||||
a) for `nixos-rebuild` you can add ‘${getName attrs}’ to
|
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
|
||||||
|
|
||||||
|
b) for `nixos-rebuild` you can add ‘${getName attrs}’ to
|
||||||
`nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
|
`nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
|
||||||
like so:
|
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
|
‘${getName attrs}’ to `permittedInsecurePackages` in
|
||||||
~/.config/nixpkgs/config.nix, like so:
|
~/.config/nixpkgs/config.nix, like so:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user