diff options
author | r0man <roman@burningswell.com> | 2023-03-21 20:11:41 +0100 |
---|---|---|
committer | 宋文武 <iyzsong@member.fsf.org> | 2023-03-25 10:06:36 +0800 |
commit | a7f118d062db4408b23505750c44a1f996496c43 (patch) | |
tree | 05042658f7e60e72c294b75f53f0e535306219f1 /gnu/services/spice.scm | |
parent | ff476daa5730b3281b8fda69494fbc89a9101cf3 (diff) | |
download | guix-a7f118d062db4408b23505750c44a1f996496c43.tar.gz guix-a7f118d062db4408b23505750c44a1f996496c43.zip |
services: xorg-wrapper: Support xorg server input rewriting.
This patch adds support for proper xorg server input rewriting. It uses the
lookup-package-direct-input procedure to configure the X server paths
dynamically, instead of always using the hard coded package. Something like
this is now possible:
(define other-mesa
(package-input-rewriting/spec `(("mesa" . ,(const other-mesa)))))
(xorg-configuration
(xorg-configuration
(server (other-mesa xorg-server))))
Without this patch the X server would still be configured with mesa (causing
version issues), and not with other-mesa (as per the input rewrite).
* gnu/services/xorg.scm (xorg-configuration-server-package-path)
(xorg-configuration-dri-driver-path, xorg-configuration-xkb-bin-dir)
(xorg-configuration-xkb-dir): New procedures.
(xorg-wrapper): Use them for dri and xkb paths.
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/services/spice.scm')
0 files changed, 0 insertions, 0 deletions