services: xorg: Filter modules based on system
authorshtwzrd <shtwzrd@protonmail.com>
Sun, 9 Feb 2020 21:31:09 +0000 (21:31 +0000)
committerJakub Kądziołka <kuba@kadziolka.net>
Sat, 15 Feb 2020 23:02:10 +0000 (00:02 +0100)
commit779d96c9b0ee38cbaca9f8577e6cc7f907fb29cb
treef46dc95f9e96bf5eee2f30012b2b6358b0c1d44e
parentc66f3b3bec196cf0e39bd0a0ffe267aad43eb423
services: xorg: Filter modules based on system

Fixes <https://bugs.gnu.org/39402>.
Reported by shtwzrd <shtwzrd@protonmail.com>.

* gnu/services/xorg.scm (xorg-configuration):
  Apply a filter over %default-xorg-modules packages, excluding
  those for which the %current-system is not among the package's
  supported-systems.

This patch makes it possible to use xorg-configuration on systems
other than x86_64 and i686, as without it, xf86-video-intel would
be pulled in on the unsupported architecture and fail.

Signed-off-by: Jakub Kądziołka <kuba@kadziolka.net>
gnu/services/xorg.scm