FAQ: Difference between revisions
imported>Samueldr m →I cannot find $package when running nix-env -qaP even with channels configured: URL shortening trickery |
imported>Cillianderoiste No edit summary |
||
Line 309: | Line 309: | ||
environment.systemPackages = [ unstable.PACKAGE_NAME ]; | environment.systemPackages = [ unstable.PACKAGE_NAME ]; | ||
} | } | ||
</syntaxhighlight> | |||
If you want to install unfree packages from unstable you need to also set allowUnfree by replacing the import statment above with: | |||
<syntaxhighlight lang="nix"> | |||
import <nixos-unstable> { config = { allowUnfree = true; }; } | |||
</syntaxhighlight> | </syntaxhighlight> | ||