diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 35f8dbc5f8..a5e1a1471d 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -59,6 +59,7 @@ (define-module (gnu services xorg) #:use-module (guix derivations) #:use-module (guix records) #:use-module (guix deprecation) + #:use-module (guix utils) #:use-module (srfi srfi-1) #:use-module (srfi srfi-9) #:use-module (srfi srfi-26) @@ -1048,11 +1049,9 @@ (define gdm-service-type (define* (set-xorg-configuration config #:optional (login-manager-service-type - (let ((system (or (%current-target-system) - (%current-system)))) - (if (string-prefix? "x86_64" system) - gdm-service-type - sddm-service-type)))) + (if (target-x86-64?) + gdm-service-type + sddm-service-type))) "Tell the log-in manager (of type @var{login-manager-service-type}) to use @var{config}, an record." (simple-service 'set-xorg-configuration