summary refs log tree commit diff
diff options
context:
space:
mode:
authorNathaniel Baxter <nathaniel.baxter@gmail.com>2014-09-07 12:42:32 +1000
committerNathaniel Baxter <nathaniel.baxter@gmail.com>2014-09-07 12:42:32 +1000
commitfb9a6221b63ee92c27c917368e980649c5167203 (patch)
tree96c0fda770e3ddc01b6f0b2eb8f66dbd7ffa3d5e
parent45f4b8b3adabfe8f19ef358e0d7d84df2c3c4723 (diff)
downloadnixlib-fb9a6221b63ee92c27c917368e980649c5167203.tar
nixlib-fb9a6221b63ee92c27c917368e980649c5167203.tar.gz
nixlib-fb9a6221b63ee92c27c917368e980649c5167203.tar.bz2
nixlib-fb9a6221b63ee92c27c917368e980649c5167203.tar.lz
nixlib-fb9a6221b63ee92c27c917368e980649c5167203.tar.xz
nixlib-fb9a6221b63ee92c27c917368e980649c5167203.tar.zst
nixlib-fb9a6221b63ee92c27c917368e980649c5167203.zip
ati_unfree: Update nixos-manual for AMD driver support
-rw-r--r--nixos/doc/manual/configuration/x-windows.xml19
-rw-r--r--nixos/modules/hardware/opengl.nix3
2 files changed, 21 insertions, 1 deletions
diff --git a/nixos/doc/manual/configuration/x-windows.xml b/nixos/doc/manual/configuration/x-windows.xml
index bc58bb1f0669..cfcc8baa898a 100644
--- a/nixos/doc/manual/configuration/x-windows.xml
+++ b/nixos/doc/manual/configuration/x-windows.xml
@@ -73,6 +73,25 @@ services.xserver.driSupport32Bit = true;
 
 </simplesect>
 
+<simplesect><title>AMD Graphics Cards</title>
+
+<para>AMD provides a proprietary driver for its graphics cards that
+has better 3D performance than the X.org drivers.  It is not enabled
+by default because it’s not free software.  You can enable it as follows:
+<programlisting>
+services.xserver.videoDrivers = [ "ati_unfree" ];
+</programlisting>
+You will need to reboot after enabling this driver to prevent a clash
+with other kernel modules.</para>
+
+<para>On 64-bit systems, if you want full acceleration for 32-bit
+programs such as Wine, you should also set the following:
+<programlisting>
+hardware.opengl.driSupport32Bit = true;
+</programlisting>
+</para>
+
+</simplesect>
 
 <simplesect><title>Touchpads</title>
 
diff --git a/nixos/modules/hardware/opengl.nix b/nixos/modules/hardware/opengl.nix
index f974ec01c669..1777c200dd11 100644
--- a/nixos/modules/hardware/opengl.nix
+++ b/nixos/modules/hardware/opengl.nix
@@ -46,7 +46,8 @@ in
       description = ''
         On 64-bit systems, whether to support Direct Rendering for
         32-bit applications (such as Wine).  This is currently only
-        supported for the <literal>nvidia</literal> driver and for
+        supported for the <literal>nvidia</literal> and 
+        <literal>ati_unfree</literal> drivers, as well as
         <literal>Mesa</literal>.
       '';
     };