mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-23 01:25:57 +02:00
gnu: %desktop-services: Switch to GDM on 64-bit systems.
* gnu/services/desktop.scm (desktop-services-for-system): Use gdm on all 64-bit systems. * gnu/services/xorg.scm (set-xorg-configuration): Adapt to desktop-services-for-system change. * gnu/system/examples/desktop.tmpl: Determine the support of Gnome by checking for supported package. Fixes: #5388 Change-Id: I0d512a7c31188cea0335e66f00a6d65ae59d09a4 Signed-off-by: Rutherther <rutherther@ditigal.xyz>
This commit is contained in:
@@ -2520,11 +2520,10 @@ applications needing access to be root.")
|
||||
(%current-system))))
|
||||
;; List of services typically useful for a "desktop" use case.
|
||||
|
||||
;; Since GDM depends on Rust and Rust is not available on all platforms,
|
||||
;; use SDDM as the fall-back display manager.
|
||||
;; TODO: Switch the condition to use (supported-package? "rust") and make
|
||||
;; a news entry about the change.
|
||||
(cons* (if (string-prefix? "x86_64" system)
|
||||
;; FIXME: Since GDM depends on more dependencies that do not build on i686,
|
||||
;; keep SDDM on it for the time being.
|
||||
;; XXX: When changing login manager, also change set-xorg-configuration
|
||||
(cons* (if (target-64bit? system)
|
||||
(service gdm-service-type)
|
||||
(service sddm-service-type))
|
||||
|
||||
|
||||
@@ -1379,14 +1379,14 @@ polkit.addRule(function(action, subject) {
|
||||
"Run the GNOME Desktop Manager (GDM), a program that allows
|
||||
you to log in in a graphical session, whether or not you use GNOME."))))
|
||||
|
||||
;; Since GDM depends on Rust and Rust is not available on all platforms,
|
||||
;; use SDDM as the fall-back display manager.
|
||||
;; TODO: Switch the condition to take into account if Rust is supported and
|
||||
;; match the configuration in desktop-services-for-system.
|
||||
|
||||
;; FIXME: Since GDM depends on more dependencies that do not build on i686,
|
||||
;; keep SDDM on it for the time being.
|
||||
;; XXX: When changing this, also change desktop-services-for-system
|
||||
(define* (set-xorg-configuration config
|
||||
#:optional
|
||||
(login-manager-service-type
|
||||
(if (target-x86-64?)
|
||||
(if (target-64bit?)
|
||||
gdm-service-type
|
||||
sddm-service-type)))
|
||||
"Tell the log-in manager (of type @var{login-manager-service-type}) to use
|
||||
|
||||
Reference in New Issue
Block a user