diff options
author | David McFarland <corngood@gmail.com> | 2016-11-12 11:29:13 -0400 |
---|---|---|
committer | David McFarland <corngood@gmail.com> | 2016-11-13 12:44:27 -0400 |
commit | e783cc90a092768d631559c9ee389269c1daad5e (patch) | |
tree | 1df87f8f6c348d2b823f8af0e317c89c2249eae9 /nixos/modules/hardware | |
parent | 1624507eaf379f31cc133dd86fbbe90a5b2c8944 (diff) |
opengl: add driver paths to XDG_DATA_DIRS
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r-- | nixos/modules/hardware/opengl.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/hardware/opengl.nix b/nixos/modules/hardware/opengl.nix index bef500e30c0bd..c4fad9a667256 100644 --- a/nixos/modules/hardware/opengl.nix +++ b/nixos/modules/hardware/opengl.nix @@ -135,6 +135,12 @@ in environment.sessionVariables.LD_LIBRARY_PATH = [ "/run/opengl-driver/lib" "/run/opengl-driver-32/lib" ]; + environment.extraInit = '' + export XDG_DATA_DIRS=$XDG_DATA_DIRS:/run/opengl-driver/share + '' + optionalString cfg.driSupport32Bit '' + export XDG_DATA_DIRS=$XDG_DATA_DIRS:/run/opengl-driver-32/share + ''; + hardware.opengl.package = mkDefault (makePackage pkgs); hardware.opengl.package32 = mkDefault (makePackage pkgs_i686); |