Unfree software: Difference between revisions
Appearance
	
	
imported>Samueldr  Splits part of the FAQ for easier linking  | 
				imported>Samueldr m Minor nitpicks  | 
				||
| Line 1: | Line 1: | ||
__NOTOC__{{#tweekihide:firstHeading}}<onlyinclude>  | |||
== How can I install a proprietary or unfree package? ==  | == How can I install a proprietary or unfree package? ==  | ||
| Line 27: | Line 28: | ||
due to policy. Most unfree licenses prohibit us from either executing or  | due to policy. Most unfree licenses prohibit us from either executing or  | ||
distributing the software.  | distributing the software.  | ||
</onlyinclude>  | |||
Revision as of 04:00, 7 January 2018
{{#tweekihide:firstHeading}}
How can I install a proprietary or unfree package?
You won't be able to install or search for an unfree package as a user, unless you explicitly enable it in ~/.config/nixpkgs/config.nix:
{
  ...
  allowUnfree = true;
}
If you want to enable unfree packages system-wide, then set in your /etc/nixos/configuration.nix:
{
  ...
  nixpkgs.config.allowUnfree = true;
}
Note that this alone will not allow you to search for or install packages with nix-env.
For temporary allowing unfree packages you can set the environment variable NIXPKGS_ALLOW_UNFREE, e.g.
NIXPKGS_ALLOW_UNFREE=1 nix-env
Note that we are not able to test or build unfree software on Hydra due to policy. Most unfree licenses prohibit us from either executing or distributing the software.