diff options
| author | Rutherther <rutherther@ditigal.xyz> | 2026-01-22 13:27:13 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-22 13:27:13 +0100 |
| commit | 7c0cd7e45b0240b842b4f3e767599501eac42ee1 (patch) | |
| tree | 3f5aab4b08d0fdfe1728be24f3250384ab44f9d2 /gnu/services | |
| parent | 4e2de18be2c7f7701c00877e05c0b587d03ac4d1 (diff) | |
| parent | d58da8a56b75af73a7b5466f7ef8a81679713aa3 (diff) | |
Merge branch 'version-1.5.0'
Change-Id: Id73c0c74600a3da3373b3a37236b505af65bfe31
Diffstat (limited to 'gnu/services')
| -rw-r--r-- | gnu/services/base.scm | 21 | ||||
| -rw-r--r-- | gnu/services/desktop.scm | 9 | ||||
| -rw-r--r-- | gnu/services/xorg.scm | 10 |
3 files changed, 28 insertions, 12 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm index e52950e3659..adda5ab9bb9 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm | |||
| @@ -1060,6 +1060,9 @@ to use as the tty. This is primarily useful for headless systems." | |||
| 1060 | (with-imported-modules (source-module-closure | 1060 | (with-imported-modules (source-module-closure |
| 1061 | '((gnu build linux-boot))) ;for 'find-long-options' | 1061 | '((gnu build linux-boot))) ;for 'find-long-options' |
| 1062 | #~(begin | 1062 | #~(begin |
| 1063 | (use-modules (gnu build linux-boot) | ||
| 1064 | (srfi srfi-1)) | ||
| 1065 | |||
| 1063 | ;; console=device,options | 1066 | ;; console=device,options |
| 1064 | ;; device: can be tty0, ttyS0, lp0, ttyUSB0 (serial). | 1067 | ;; device: can be tty0, ttyS0, lp0, ttyUSB0 (serial). |
| 1065 | ;; options: BBBBPNF. P n|o|e, N number of bits, | 1068 | ;; options: BBBBPNF. P n|o|e, N number of bits, |
| @@ -1083,7 +1086,20 @@ to use as the tty. This is primarily useful for headless systems." | |||
| 1083 | (find-long-options "console" command))) | 1086 | (find-long-options "console" command))) |
| 1084 | (specs (append agetty-specs console-specs))) | 1087 | (specs (append agetty-specs console-specs))) |
| 1085 | (match specs | 1088 | (match specs |
| 1086 | (() #f) | 1089 | ;; Fallback to a physical console registered in /proc/consoles. |
| 1090 | (() (let* ((consoles (read-linux-consoles)) | ||
| 1091 | (chosen-console | ||
| 1092 | ;; Prioritize preferred, if none, choose any enabled. | ||
| 1093 | (or (find (lambda (c) | ||
| 1094 | (and (not (linux-console-virtual? c)) | ||
| 1095 | (linux-console-preferred? c))) | ||
| 1096 | consoles) | ||
| 1097 | (find (lambda (c) | ||
| 1098 | (and (not (linux-console-virtual? c)) | ||
| 1099 | (linux-console-enabled? c))) | ||
| 1100 | consoles)))) | ||
| 1101 | (and chosen-console | ||
| 1102 | (linux-console-device chosen-console)))) | ||
| 1087 | ((spec _ ...) | 1103 | ((spec _ ...) |
| 1088 | ;; Extract device name from first spec. | 1104 | ;; Extract device name from first spec. |
| 1089 | (match (string-tokenize spec not-comma) | 1105 | (match (string-tokenize spec not-comma) |
| @@ -1111,7 +1127,8 @@ to use as the tty. This is primarily useful for headless systems." | |||
| 1111 | (requirement (cons* 'user-processes 'host-name 'udev | 1127 | (requirement (cons* 'user-processes 'host-name 'udev |
| 1112 | shepherd-requirement)) | 1128 | shepherd-requirement)) |
| 1113 | 1129 | ||
| 1114 | (modules '((ice-9 match) (gnu build linux-boot))) | 1130 | (modules '((ice-9 match) (gnu build linux-boot) |
| 1131 | (srfi srfi-1))) | ||
| 1115 | (start | 1132 | (start |
| 1116 | (with-imported-modules (source-module-closure | 1133 | (with-imported-modules (source-module-closure |
| 1117 | '((gnu build linux-boot))) | 1134 | '((gnu build linux-boot))) |
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 59dc5b34749..52f9acaafe2 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm | |||
| @@ -2520,11 +2520,10 @@ applications needing access to be root.") | |||
| 2520 | (%current-system)))) | 2520 | (%current-system)))) |
| 2521 | ;; List of services typically useful for a "desktop" use case. | 2521 | ;; List of services typically useful for a "desktop" use case. |
| 2522 | 2522 | ||
| 2523 | ;; Since GDM depends on Rust and Rust is not available on all platforms, | 2523 | ;; FIXME: Since GDM depends on more dependencies that do not build on i686, |
| 2524 | ;; use SDDM as the fall-back display manager. | 2524 | ;; keep SDDM on it for the time being. |
| 2525 | ;; TODO: Switch the condition to use (supported-package? "rust") and make | 2525 | ;; XXX: When changing login manager, also change set-xorg-configuration |
| 2526 | ;; a news entry about the change. | 2526 | (cons* (if (target-64bit? system) |
| 2527 | (cons* (if (string-prefix? "x86_64" system) | ||
| 2528 | (service gdm-service-type) | 2527 | (service gdm-service-type) |
| 2529 | (service sddm-service-type)) | 2528 | (service sddm-service-type)) |
| 2530 | 2529 | ||
diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 068ad68df5d..e679e6bc03d 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm | |||
| @@ -1415,14 +1415,14 @@ polkit.addRule(function(action, subject) { | |||
| 1415 | "Run the GNOME Desktop Manager (GDM), a program that allows | 1415 | "Run the GNOME Desktop Manager (GDM), a program that allows |
| 1416 | you to log in in a graphical session, whether or not you use GNOME.")))) | 1416 | you to log in in a graphical session, whether or not you use GNOME.")))) |
| 1417 | 1417 | ||
| 1418 | ;; Since GDM depends on Rust and Rust is not available on all platforms, | 1418 | |
| 1419 | ;; use SDDM as the fall-back display manager. | 1419 | ;; FIXME: Since GDM depends on more dependencies that do not build on i686, |
| 1420 | ;; TODO: Switch the condition to take into account if Rust is supported and | 1420 | ;; keep SDDM on it for the time being. |
| 1421 | ;; match the configuration in desktop-services-for-system. | 1421 | ;; XXX: When changing this, also change desktop-services-for-system |
| 1422 | (define* (set-xorg-configuration config | 1422 | (define* (set-xorg-configuration config |
| 1423 | #:optional | 1423 | #:optional |
| 1424 | (login-manager-service-type | 1424 | (login-manager-service-type |
| 1425 | (if (target-x86-64?) | 1425 | (if (target-64bit?) |
| 1426 | gdm-service-type | 1426 | gdm-service-type |
| 1427 | sddm-service-type))) | 1427 | sddm-service-type))) |
| 1428 | "Tell the log-in manager (of type @var{login-manager-service-type}) to use | 1428 | "Tell the log-in manager (of type @var{login-manager-service-type}) to use |
