Nix : Add NIXPKGS_ALLOW_UNFREE=1 env.
This commit is contained in:
parent
eb52d62339
commit
41023388be
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ environment, ... }: {
|
||||||
nixpkgs.config.allowUnfree = true;
|
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
|
||||||
nix.settings.auto-optimise-store = true;
|
nix.settings.auto-optimise-store = true;
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ function nix_tmpshell() {
|
||||||
pkgs+=("nixpkgs#${pkg}")
|
pkgs+=("nixpkgs#${pkg}")
|
||||||
done
|
done
|
||||||
|
|
||||||
NIX_SHELL="${tag}" nix shell ${pkgs[@]}
|
NIX_SHELL="${tag}" NIXPKGS_ALLOW_UNFREE=1 nix shell --impure ${pkgs[@]}
|
||||||
}
|
}
|
||||||
alias tmpshell="nix_tmpshell"
|
alias tmpshell="nix_tmpshell"
|
||||||
|
|
||||||
|
|
Reference in a new issue