Nix : Add NIXPKGS_ALLOW_UNFREE=1 env.

This commit is contained in:
Dmitry Voronin 2024-02-26 00:57:15 +03:00
parent eb52d62339
commit 41023388be
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{ ... }: {
nixpkgs.config.allowUnfree = true;
{ environment, ... }: {
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
nix.settings.auto-optimise-store = true;
nixpkgs.config.allowUnfree = true;
}

View file

@ -60,7 +60,7 @@ function nix_tmpshell() {
pkgs+=("nixpkgs#${pkg}")
done
NIX_SHELL="${tag}" nix shell ${pkgs[@]}
NIX_SHELL="${tag}" NIXPKGS_ALLOW_UNFREE=1 nix shell --impure ${pkgs[@]}
}
alias tmpshell="nix_tmpshell"