about summary refs log tree commit diff
path: root/nixos/modules/hardware/opengl.nix
Commit message (Collapse)AuthorAge
* Merge pull request #63894 from ambrop72/no-opengl-xdg-data-dirsworldofpeace2019-07-11
|\ | | | | nixos/opengl: Don't set XDG_DATA_DIRS.
| * nixos/opengl: Don't set XDG_DATA_DIRS.Ambroz Bizjak2019-06-28
| | | | | | | | | | | | This was added in #19936 so that vulkan-loader finds the ICD config files. It is not needed any more after #62869 where it was ensured that the loader looks in /run/opengl-driver(-32)/share.
* | Merge pull request #61981 from ambrop72/no-opengl-ld-library-pathworldofpeace2019-07-11
|\ \ | |/ |/| nixos: Don't set LD_LIBRARY_PATH for graphics drivers that don't need it.
| * nixos: Don't set LD_LIBRARY_PATH for graphics drivers that don't need it.Ambroz Bizjak2019-05-26
| | | | | | | | | | | | | | | | | | | | | | | | A new internal option `hardware.opengl.setLdLibraryPath` is added which controls if `LD_LIBRARY_PATH` should be set to `/run/opengl-driver(-32)/lib`. It is false by default and is meant to be set to true by any driver which requires it. If this option is false, then `opengl.nix` and `xserver.nix` will not set `LD_LIBRARY_PATH`. Currently Mesa and NVidia drivers don't set `setLdLibraryPath` because they work with libglvnd and do not override libraries, while `amdgpu-pro`, `ati` and `parallels-guest` set it to true (the former two really need it, the last one doesn't build so is presumed to). Additionally, the `libPath` attribute within entries of `services.xserver.drivers` is removed. This made `xserver.nix` add the driver path directly to the `LD_LIBRARY_PATH` for the display manager (including X server). Not only is it redundant when the driver is added to `hardware.opengl.package` (assuming that `hardware.opengl.enable` is true), in fact all current drivers except `ati` set it incorrectly to the package path instead of package/lib. This removal of `LD_LIBRARY_PATH` could break certain packages using CUDA, but only those that themselves load `libcuda` or other NVidia driver libraries using `dlopen` (not if they just use `cudatoolkit`). A few have already been fixed but it is practically impossible to test all because most packages using CUDA are libraries/frameworks without a simple way to test. Fixes #11434 if only Mesa or NVidia graphics drivers are used.
* | treewide: mesa_noglu, mesa_drivers, libGL_driver -> mesaMatthew Bauer2019-06-17
|/ | | | Just use mesa for these to be more clear. Move these to aliases.nix
* nixos/opengl: assert 32bit emu support if 32bit support is enabledJoachim Fasting2019-01-06
| | | | See https://github.com/NixOS/nixpkgs/issues/51097
* treewide: remove pkgs_i686Matthew Bauer2018-11-03
| | | | | | This was getting evaluated eagerly causing assertion failures in aarch64 systems. We can replace usages of pkgs_i686 with pkgs.pkgsi686Linux.
* nixos/opengl: create /run/opengl-driver using tmpfiles.dJamey Sharp2018-09-30
| | | | | Anything that uses OpenGL starts after sysinit.target, so systemd-tmpfiles runs before anything that needs these symlinks.
* opengl service: don't override mesa non-drivers in runtimeNikolay Amiantov2018-03-26
|
* opengl service: move options under common hardware.opengl treeNikolay Amiantov2018-03-26
| | | | Purely cosmetic.
* nixos/opengl: unhide and document enable optionLinus Heckemann2018-02-25
|
* intel-ocl: r4.0-59481 -> 5.0-63503zimbatm2017-11-01
|
* opengl service: use option for XDG_DATA_DIRSNikolay Amiantov2017-01-31
|
* opengl service: mention that you can add OpenCL driversNikolay Amiantov2017-01-20
|
* opengl: add driver paths to XDG_DATA_DIRSDavid McFarland2016-11-13
|
* nixos opengl: use mesa_drivers.outVladimír Čunát2016-09-24
| | | | | | ...instead of mesa_noglu.out. Closures of systems remain unchanged, as both are in (and the .out output is very small anyway). This is to make sure that we use lib*GL* that aren't slowed down by grsecurity.
* opengl.extraPackages32: pkgsi686Linux in exampleBrian McKenna2016-03-26
| | | Issue #12616 uses this example but the commit doesn't.
* nixos xserver: remove vaapiDriversNikolay Amiantov2016-01-26
| | | | Use hardware.opengl.extraPackages instead.
* nixos opengl: add extraPackages and extraPackages32Nikolay Amiantov2016-01-26
|
* Remove udev from /run/opengl-driversEelco Dolstra2014-12-17
| | | | | | | | | /run/opengl-drivers should contain only libGL-related libraries, not stuff like udev. Injecting anything into LD_LIBRARY_PATH is dangerous because it can break applications that expect a different version of the library. Caused by eef9a8ac2a30b495ff7184382ed0dbd73b3b88e4. Fixes #5371.
* ati_unfree: Update nixos-manual for AMD driver supportNathaniel Baxter2014-09-07
|
* ati_unfree: Create a nixos module for the ati_unfree x11 driver andNathaniel Baxter2014-09-07
| | | | blacklist the radeon driver when ati_unfree is installed.
* Get all lib functions from lib, not pkgs.lib, in modulesShea Levy2014-07-02
|
* fixup the previous: got renamed to sessionVariablesVladimír Čunát2014-06-15
| | | | | I'm sorry; I didn't notice Eelco renamed the option. My dry-run didn't catch that one with nvidia driver, no idea why.
* nixos/opengl: add LD_LIBRARY_PATH to systemVariables insteadVladimír Čunát2014-06-15
| | | | so all users get this variable, thanks to work from #2692.
* On my system OpenGL with bumblebee seems to require libudev in ↵Michael Raskin2014-05-02
| | | | LD_LIBRARY_PATH. Fix that, fix bumblebee module loading and make the socket group configurable
* Move the NVIDIA support into its own moduleEelco Dolstra2014-04-29
| | | | | | | | | | | | | | | | Previously all card-specific stuff was scattered across xserver.nix and opengl.nix, which is ugly. Now it can be kept together in a single card-specific module. This required the addition of a few internal options: - services.xserver.drivers: A list of { name, driverName, modules, libPath } sets. - hardware.opengl.package: The OpenGL implementation. Note that there can be only one OpenGL implementation at a time in a system configuration (i.e. no dynamic detection). - hardware.opengl.package32: The 32-bit OpenGL implementation.
* Rename hardware.opengl.videoDrivers back to services.xserver.videoDriversEelco Dolstra2014-04-29
| | | | | | | | Fixes #2379. The new name was a misnomer because the values really are X11 video drivers (e.g. ‘cirrus’ or ‘nvidia’), not OpenGL implementations. That it's also used to set an OpenGL implementation for kmscon is just confusing overloading.
* mesa: have all output on /run/opengl-driver{,-32}Vladimír Čunát2014-04-14
| | | | Fixes #2242 in a different way (cleaner, I hope).
* nixos opengl: add s2tc to mesa drivers by defaultVladimír Čunát2014-04-14
| | | | Close #2200. Thanks to @cpages for suggesting and testing this.
* services.mesa -> hardware.openglShea Levy2014-02-08
Signed-off-by: Shea Levy <shea@shealevy.com>