Skip to content

Commit de78327

Browse files
committed
nixos/opengl: add LD_LIBRARY_PATH to systemVariables instead
so all users get this variable, thanks to work from #2692.
1 parent 43a7744 commit de78327

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nixos/modules/hardware/opengl.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let
1616
[ p.mesa_drivers
1717
p.mesa_noglu # mainly for libGL
1818
(if cfg.s3tcSupport then p.libtxc_dxtn else p.libtxc_dxtn_s2tc)
19-
p.udev
19+
p.udev
2020
];
2121
};
2222

@@ -101,7 +101,7 @@ in
101101
''}
102102
'';
103103

104-
environment.variables.LD_LIBRARY_PATH =
104+
environment.systemVariables.LD_LIBRARY_PATH =
105105
[ "/run/opengl-driver/lib" "/run/opengl-driver-32/lib" ];
106106

107107
# FIXME: move this into card-specific modules.

0 commit comments

Comments
 (0)