diff options
| author | Hilton Chain <hako@ultrarare.space> | 2026-01-16 23:56:20 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2026-01-31 21:44:00 +0800 |
| commit | 50203e41812a79cdb2ab97dc43ec91749a69bd59 (patch) | |
| tree | ce5567304b780a40f97f0260d8c62f78fbd221db /gnu/installer | |
| parent | 4c98911039b8c8d4d6af0e46cf7e2ae50ad9289b (diff) | |
installer: system-services->configuration: Simplify returning sexp.
* gnu/installer/services.scm (system-services->configuration): Simplify
returning sexp to improve readability.
Change-Id: I02a91523bcf4af1b6fe6476ab2f0e390559a8457
Diffstat (limited to 'gnu/installer')
| -rw-r--r-- | gnu/installer/services.scm | 58 |
1 files changed, 23 insertions, 35 deletions
diff --git a/gnu/installer/services.scm b/gnu/installer/services.scm index c3bbf8afdba..833d9ba2ac8 100644 --- a/gnu/installer/services.scm +++ b/gnu/installer/services.scm | |||
| @@ -243,44 +243,32 @@ | |||
| 243 | ;; under their own account: use 'guix search KEYWORD' to search | 243 | ;; under their own account: use 'guix search KEYWORD' to search |
| 244 | ;; for packages and 'guix install PACKAGE' to install a package.\n"))))) | 244 | ;; for packages and 'guix install PACKAGE' to install a package.\n"))))) |
| 245 | 245 | ||
| 246 | (if (null? snippets) | 246 | `(,@(if (null? packages) |
| 247 | `(,@(if (null? packages) | 247 | (if (target-hurd?) |
| 248 | (if (target-hurd?) | ||
| 249 | `(,@package-heading | ||
| 250 | (packages %base-packages/hurd)) | ||
| 251 | '()) | ||
| 252 | `(,@package-heading | 248 | `(,@package-heading |
| 253 | (packages (append (list ,@packages) | 249 | (packages %base-packages/hurd)) |
| 254 | ,(if (target-hurd?) | 250 | '()) |
| 255 | '%base-packages/hurd | 251 | `(,@package-heading |
| 256 | '%base-packages))))) | 252 | (packages (append (list ,@packages) |
| 253 | ,(if (target-hurd?) | ||
| 254 | '%base-packages/hurd | ||
| 255 | '%base-packages))))) | ||
| 257 | 256 | ||
| 258 | ,@service-heading | 257 | ,@service-heading |
| 259 | (services ,services)) | 258 | ,(if (null? snippets) |
| 260 | `(,@(if (null? packages) | 259 | `(services ,services) |
| 261 | (if (target-hurd?) | 260 | `(services |
| 262 | `(,@package-heading | 261 | (append (list ,@snippets |
| 263 | (packages %base-packages/hurd)) | ||
| 264 | '()) | ||
| 265 | `(,@package-heading | ||
| 266 | (packages (append (list ,@packages) | ||
| 267 | ,(if (target-hurd?) | ||
| 268 | '%base-packages/hurd | ||
| 269 | '%base-packages))))) | ||
| 270 | |||
| 271 | ,@service-heading | ||
| 272 | (services (append (list ,@snippets | ||
| 273 | 262 | ||
| 274 | ,@(if desktop? | 263 | ,@(if desktop? |
| 275 | ;; XXX: Assume 'keyboard-layout' is in | 264 | ;; XXX: Assume 'keyboard-layout' is in scope. |
| 276 | ;; scope. | 265 | `((set-xorg-configuration |
| 277 | `((set-xorg-configuration | 266 | (xorg-configuration |
| 278 | (xorg-configuration | 267 | (keyboard-layout keyboard-layout)))) |
| 279 | (keyboard-layout keyboard-layout)))) | 268 | '())) |
| 280 | '())) | ||
| 281 | 269 | ||
| 282 | ,(vertical-space 1) | 270 | ,(vertical-space 1) |
| 283 | ,(comment (G_ "\ | 271 | ,(comment (G_ "\ |
| 284 | ;; This is the default list of services we | 272 | ;; This is the default list of services we |
| 285 | ;; are appending to.\n")) | 273 | ;; are appending to.\n")) |
| 286 | ,services)))))) | 274 | ,services)))))) |
