Unfree software: Difference between revisions

DoggoBit (talk | contribs)
No edit summary
Smudgebun (talk | contribs)
Added a link to the section of the Flakes page on unfree software.
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
[https://nixos.org/manual/nixpkgs/stable/#sec-allow-unfree Nixpkgs manual on allowing unfree packages]
[https://nixos.org/manual/nixpkgs/stable/#sec-allow-unfree Nixpkgs manual on allowing unfree packages]


== Allowing unfree software ==
By default, nix will refuse to evaluate any [[Derivations|derivation]] containing unfree software, prompting the user to read the manual for more details. This behaviour can be configured in different ways depending on the context of the derivation.
=== Unfree software in Flakes ===
For allowing unfree software in a flake-based config, see: [[Flakes#Enable_unfree_software]].
=== Unfree software using Home Manager ===
Depending on your [[Home Manager]] installation, there are multiple ways to allow unfree software.
==== Standalone Home Manager ====
If your Home Manager configuration isn't integrated into your [[NixOS]] configuration (i.e. you switch generations using <code>home-manager switch</code> and not by rebuilding the whole system), then you may allow unfree software by setting the nixpkgs option in your config:
{{File|3=<nowiki>{ ... }:
{
  ...
  nixpkgs.config.allowUnfree = true;
}</nowiki>|name=home.nix|lang=nix}}
[[Category:Software]]
[[Category:Software]]
[[Category:Nixpkgs]]
[[Category:Nixpkgs]]