nixpkgs/nixos/modules/virtualisation
Ambroz Bizjak 370d3af0c4 nixos: Don't set LD_LIBRARY_PATH for graphics drivers that don't need it.
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.
2019-05-26 10:23:46 +02:00
..
amazon-image.nix amazon-image.nix: Resolve failure to include resize2fs 2019-03-15 17:33:45 +01:00
amazon-init.nix
amazon-options.nix Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1" 2018-07-28 00:12:55 +03:00
anbox.nix nixos/anbox: init module 2019-03-18 09:28:02 +01:00
azure-agent-entropy.patch
azure-agent.nix reewide: Purge all uses stdenv.system and top-level system 2018-08-30 17:20:32 -04:00
azure-bootstrap-blobs.nix
azure-common.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
azure-config-user.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
azure-config.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
azure-image.nix
azure-images.nix
brightbox-config.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
brightbox-image.nix reewide: Purge all uses stdenv.system and top-level system 2018-08-30 17:20:32 -04:00
cloudstack-config.nix nixos/cloudstack-image: initial import 2018-11-17 20:40:11 +01:00
container-config.nix modules/profiles/minimal: sound is disabled by default 2019-01-13 13:47:36 +01:00
containers.nix nixos/containers: create veths if only IPv6 is configured 2019-03-20 04:38:10 +01:00
docker-containers.nix Merge pull request #60406 from JohnAZoidberg/remove-isnull 2019-05-18 09:36:24 +00:00
docker-image.nix nixos/docker-image: add example usage 2018-11-23 15:40:10 +00:00
docker-preloader.nix nixos/dockerPreloader: guard the entire implemetation with mkIf on image list 2019-02-11 23:35:25 +01:00
docker.nix docker: fix typo 2019-05-22 08:40:01 -07:00
ec2-amis.nix ec2-amis.nix: add 19.03 amis 2019-04-18 23:07:14 -04:00
ec2-data.nix
ec2-metadata-fetcher.nix nixos: Add ec2-metadata-fetcher.nix file 2019-02-11 20:58:45 +01:00
ecs-agent.nix
gce-images.nix Update GCE image for 18.09 2018-11-16 11:43:42 +01:00
google-compute-config.nix nixos/modules/virtualisation/google-compute-config.nix: remove google-accounts-daemon 2018-12-21 17:52:37 +01:00
google-compute-image.nix treewide: Remove usage of isNull 2019-04-29 14:05:50 +02:00
grow-partition.nix
hyperv-guest.nix nixos on hyperv: hot-add CPU 2018-09-28 22:28:26 +08:00
kvmgt.nix kvmgt module: add service restart on failure 2018-10-18 22:35:32 +03:00
libvirtd.nix nixos/libvirtd: utilize onShutdown option (#49480) 2018-10-31 00:01:00 +01:00
lxc-container.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
lxc.nix
lxcfs.nix
lxd.nix
openstack-config.nix openstackImage: set the / fsType to reenable root FS resizing 2019-03-21 10:04:07 +01:00
openvswitch.nix nixos/openvswitch: /var/run -> /run 2019-03-24 21:15:34 +01:00
parallels-guest.nix nixos: Don't set LD_LIBRARY_PATH for graphics drivers that don't need it. 2019-05-26 10:23:46 +02:00
qemu-guest-agent.nix nixos/qemu-guest-agent: pkgs.{kvm -> qemu} (#48293) 2018-10-13 00:41:46 +02:00
qemu-vm.nix nixos/dockerPreloader: preload docker images (#49379) 2018-11-03 01:00:53 +01:00
rkt.nix
virtualbox-guest.nix reewide: Purge all uses stdenv.system and top-level system 2018-08-30 17:20:32 -04:00
virtualbox-host.nix virtualbox: 5.2.28 -> 6.0.6 2019-05-09 23:36:57 +02:00
virtualbox-image.nix nixos/virtualbox: Fixes configuration to evaluate 2019-04-20 23:04:13 -04:00
vmware-guest.nix Merge pull request #54917 from peterhoeg/f/vmware 2019-02-20 14:34:25 +08:00
xe-guest-utilities.nix nixos: correct improper uses of mkEnableOption, clarify service descriptions 2018-10-05 13:14:45 +07:00
xen-dom0.nix reewide: Purge all uses stdenv.system and top-level system 2018-08-30 17:20:32 -04:00
xen-domU.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00