mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
doc: Only use GDM and GNOME on x86_64.
* gnu/system/examples/desktop.tmpl: Only use gnome-desktop-service-type and the default login manager in set-xorg-configuration when the target system is x86_64.
This commit is contained in:
parent
f831bb75f1
commit
0fea9aec59
1 changed files with 21 additions and 8 deletions
|
@ -2,8 +2,8 @@
|
||||||
;; for a "desktop" setup with GNOME and Xfce where the
|
;; for a "desktop" setup with GNOME and Xfce where the
|
||||||
;; root partition is encrypted with LUKS, and a swap file.
|
;; root partition is encrypted with LUKS, and a swap file.
|
||||||
|
|
||||||
(use-modules (gnu) (gnu system nss))
|
(use-modules (gnu) (gnu system nss) (guix utils))
|
||||||
(use-service-modules desktop xorg)
|
(use-service-modules desktop sddm xorg)
|
||||||
(use-package-modules certs gnome)
|
(use-package-modules certs gnome)
|
||||||
|
|
||||||
(operating-system
|
(operating-system
|
||||||
|
@ -74,12 +74,25 @@
|
||||||
;; by clicking the gear. Use the "desktop" services, which
|
;; by clicking the gear. Use the "desktop" services, which
|
||||||
;; include the X11 log-in service, networking with
|
;; include the X11 log-in service, networking with
|
||||||
;; NetworkManager, and more.
|
;; NetworkManager, and more.
|
||||||
(services (append (list (service gnome-desktop-service-type)
|
(services (if (target-x86-64?)
|
||||||
(service xfce-desktop-service-type)
|
(append (list (service gnome-desktop-service-type)
|
||||||
(set-xorg-configuration
|
(service xfce-desktop-service-type)
|
||||||
(xorg-configuration
|
(set-xorg-configuration
|
||||||
(keyboard-layout keyboard-layout))))
|
(xorg-configuration
|
||||||
%desktop-services))
|
(keyboard-layout keyboard-layout))))
|
||||||
|
%desktop-services)
|
||||||
|
|
||||||
|
;; FIXME: Since GDM depends on Rust (gdm -> gnome-shell -> gjs
|
||||||
|
;; -> mozjs -> rust) and Rust is currently unavailable on
|
||||||
|
;; non-x86_64 platforms, we use SDDM and Mate here instead of
|
||||||
|
;; GNOME and GDM.
|
||||||
|
(append (list (service mate-desktop-service-type)
|
||||||
|
(service xfce-desktop-service-type)
|
||||||
|
(set-xorg-configuration
|
||||||
|
(xorg-configuration
|
||||||
|
(keyboard-layout keyboard-layout))
|
||||||
|
sddm-service-type))
|
||||||
|
%desktop-services)))
|
||||||
|
|
||||||
;; Allow resolution of '.local' host names with mDNS.
|
;; Allow resolution of '.local' host names with mDNS.
|
||||||
(name-service-switch %mdns-host-lookup-nss))
|
(name-service-switch %mdns-host-lookup-nss))
|
||||||
|
|
Loading…
Reference in a new issue