I have such a line in my 22.05:
unstable = import (fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz) {};
, allowing me to grab some unstable packages, but not unfree ones.
How can I declare that I also want unfree packages from unstable, as I already have that declaration for 22.05?
1 Like
NobbZ
2
Pass the config to the imported nixpkgs, eg:
unstable = import (fetchTarball …) {config.allowUnfree = true;};
4 Likes
raboof
3
allowUnfree as mentioned works, if you want to be more fine-grained you can use allowUnfreePredicate (Nixpkgs 24.05 manual | Nix & NixOS)
2 Likes