summary refs log tree commit diff
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2021-08-30 10:56:11 +0200
committerMathieu Othacehe <othacehe@gnu.org>2021-08-30 10:59:18 +0200
commitf91ae9425bb385b60396a544afe27933896b8fa3 (patch)
tree7d0cb7e7fc3c037a914cb4504e22c64f7ecbc3c8
parent8ef38cd1bf7ec17b8d1bc1c0bcb42ac30ac30406 (diff)
downloadguix-f91ae9425bb385b60396a544afe27933896b8fa3.tar.gz
services: xorg: Delay the xorg-configuration-modules field evaluation.
When building an image with the "system" parameter set to an emulated
architecture, the xorg-configuration-modules field needs to be evaluated once
the %current-system parameter is set, otherwise this parameter is set to the
current host system.

* gnu/services/xorg.scm (<xorg-configuration>)[modules]: Make it a thunked
field.
-rw-r--r--gnu/services/xorg.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index e34cfd35b4..d5c5316d3f 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -162,6 +162,7 @@
   xorg-configuration make-xorg-configuration
   xorg-configuration?
   (modules          xorg-configuration-modules    ;list of packages
+                    (thunked)
                     ; filter out modules not supported on current system
                     (default (filter
                               (lambda (p)