[Nix-dev] [PATCH] ati fixes: create /etc/ati

Marc Weber marco-oweber at gmx.de
Wed Aug 11 01:28:45 CEST 2010


---
 modules/services/x11/xserver.nix |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/modules/services/x11/xserver.nix b/modules/services/x11/xserver.nix
index a5a4c90..d4afaf0 100644
--- a/modules/services/x11/xserver.nix
+++ b/modules/services/x11/xserver.nix
@@ -383,7 +383,15 @@ in
         { source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
           target = "X11/xkb";
         }
-      ];
+      ] ++ optional (elem "ati_unfree" driverNames)
+	# symlink default /etc/ati files:
+	{ source = pkgs.runCommand "ati-etc" {} ''
+            ensureDir $out
+            ${xorg.lndir}/bin/lndir ${kernelPackages.ati_drivers_x11}/etc/ati $out
+            ln -s ./amdpcsdb.default $out/amdpcsdb
+        '';
+	  target = "ati";
+	};
     
     environment.x11Packages =
       [ xorg.xorgserver
-- 
1.7.1




More information about the nix-dev mailing list