about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorArnout Engelen <arnout@bzzt.net>2022-07-28 17:22:50 +0200
committerGitHub <noreply@github.com>2022-07-28 17:22:50 +0200
commitca95a7a25c271c719d030575e70ad8a74e131f38 (patch)
treececedabd7beee14033357081a26c36fab46ecef6 /doc
parent614455206d552925a1810cfa9d3b038fad4d702e (diff)
parent0dd7792b4cdfba6ee700864919f358187163e850 (diff)
Merge pull request #183353 from raboof/nixpkgs-manual-unused-unfree
nixpkgs/doc: remove unused `unfree.xml`
Diffstat (limited to 'doc')
-rw-r--r--doc/builders/packages/unfree.xml13
-rw-r--r--doc/using/configuration.chapter.md5
2 files changed, 5 insertions, 13 deletions
diff --git a/doc/builders/packages/unfree.xml b/doc/builders/packages/unfree.xml
deleted file mode 100644
index 3d4f199f8fb0d..0000000000000
--- a/doc/builders/packages/unfree.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<section xmlns="http://docbook.org/ns/docbook"
-         xmlns:xlink="http://www.w3.org/1999/xlink"
-         xml:id="unfree-software">
- <title>Unfree software</title>
-
- <para>
-  All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software. At the same time, many users need (or want) to run some specific pieces of proprietary software. Nixpkgs includes some expressions for unfree software packages. By default unfree software cannot be installed and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export <literal>NIXPKGS_ALLOW_UNFREE=1</literal>. For a persistent solution, users can set <literal>allowUnfree</literal> in the Nixpkgs configuration.
- </para>
-
- <para>
-  Fine-grained control is possible by defining <literal>allowUnfreePredicate</literal> function in config; it takes the <literal>mkDerivation</literal> parameter attrset and returns <literal>true</literal> for unfree packages that should be allowed.
- </para>
-</section>
diff --git a/doc/using/configuration.chapter.md b/doc/using/configuration.chapter.md
index 2445aa32f2a7f..3c46dc3227a65 100644
--- a/doc/using/configuration.chapter.md
+++ b/doc/using/configuration.chapter.md
@@ -77,6 +77,11 @@ The difference between a package being unsupported on some system and being brok
 
 ## Installing unfree packages {#sec-allow-unfree}
 
+All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software.
+At the same time, many users need (or want) to run some specific pieces of proprietary software.
+Nixpkgs includes some expressions for unfree software packages.
+By default unfree software cannot be installed and doesn’t show up in searches.
+
 There are several ways to tweak how Nix handles a package which has been marked as unfree.
 
 -   To temporarily allow all unfree packages, you can use an environment variable for a single invocation of the nix tools: