Unfree software: Difference between revisions

imported>Samueldr
m Minor nitpicks
imported>Samueldr
m Updates text to specify NixOS specifics.
Line 2: Line 2:
== How can I install a proprietary or unfree package? ==
== 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'':
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'' (the file and folder may need to be created):


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
{
{
   ...
   # [...]
   allowUnfree = true;
   allowUnfree = true;
}
}
</syntaxhighlight>
</syntaxhighlight>


If you want to enable unfree packages system-wide, then set in your <code>/etc/nixos/configuration.nix</code>:
When using NixOS, it is possible to enable unfree packages system-wide, then set in your <code>/etc/nixos/configuration.nix</code>:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
{
{
   ...
   # [...]
   nixpkgs.config.allowUnfree = true;
   nixpkgs.config.allowUnfree = true;
}
}