nixpkgs/nixos/modules
Naïm Favier 0e347b1a77
nixos/xserver: respect module order
Reimplement the `ModulePath` generation logic by only adding the
`/lib/xorg/modules` subpath for each module, in the specified order.

In particular, hardware-specific drivers are listed *before*
`xorgserver`, which fixes https://github.com/NixOS/nixpkgs/issues/299684.

This also keeps the list reproducible, as wanted by https://github.com/NixOS/nixpkgs/pull/230186.

I have confirmed that X is able to find `.so` files recursively within
the `ModulePath`, so that there is no need to include subdirectories of
`/lib/xorg/modules`. Furthermore, I don't expect there to be a need to
include directories *outside* of `/lib/xorg/modules`, as the default
`ModulePath` on standard distributions is `/usr/lib/xorg/modules`.
(see https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml#heading4)
2024-03-28 23:17:52 +01:00
..
config nixos/users-groups: move linger to oneshot and add nixos test 2024-03-21 19:51:05 -04:00
hardware nixos/nvidia: Set SidebandSocketPath to a user-writable path in /run 2024-03-19 16:34:41 -07:00
i18n/input-method treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
image nixos/repart-image: add myself as maintainer 2024-03-21 11:37:43 +01:00
installer installer/nixos-generate-config: correctly detect bcache 2024-03-26 23:32:09 +01:00
misc nixos/mandoc: add leading slash to manPath 2024-03-20 00:56:18 +01:00
profiles Merge pull request #293846 from amarshall/darwin-linux-builder-fail-on-error 2024-03-25 12:20:58 +01:00
programs treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
security treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
services nixos/xserver: respect module order 2024-03-28 23:17:52 +01:00
system treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
tasks envfs: 1.0.3 -> 1.0.6 2024-03-24 10:26:45 +01:00
testing nixos/test-instrumentation: use full path to env 2024-03-04 16:12:56 +01:00
virtualisation Merge pull request #290122 from FriedrichAltheide/virtualbox-guest-additions-fixes 2024-03-28 11:42:22 +03:00
module-list.nix Merge pull request #293117 from SuperSandro2000/goldwarden 2024-03-27 17:04:26 +01:00
rename.nix restya-board: drop 2024-02-07 01:33:05 +01:00