summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/install.scm18
1 files changed, 1 insertions, 17 deletions
diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 06fed8cae9a..e5dfdbb427b 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -336,29 +336,13 @@ templates under @file{/etc/configuration}.")))
336 "Load the @code{uvesafb} kernel module with the right options.") 336 "Load the @code{uvesafb} kernel module with the right options.")
337 (default-value #t))) 337 (default-value #t)))
338 338
339(define (guix-package-commit guix)
340 ;; Extract the commit of the GUIX package.
341 (match (package-source guix)
342 ((? channel? source)
343 (channel-commit source))
344 (_
345 (apply (lambda* (#:key commit #:allow-other-keys) commit)
346 (package-arguments guix)))))
347
348(define* (%installation-services 339(define* (%installation-services
349 #:key 340 #:key
350 (system (or (and=> 341 (system (or (and=>
351 (%current-target-system) 342 (%current-target-system)
352 platform-target->system) 343 platform-target->system)
353 (%current-system))) 344 (%current-system)))
354 (guix-for-system 345 (guix-for-system (current-guix)))
355 (let ((guix (current-guix)))
356 (package
357 (inherit guix)
358 ;; Do not leak the local checkout URL.
359 (source (channel
360 (inherit %default-guix-channel)
361 (commit (guix-package-commit guix))))))))
362 ;; List of services of the installation system. 346 ;; List of services of the installation system.
363 (let ((motd (plain-file "motd" " 347 (let ((motd (plain-file "motd" "
364\x1b[1;37mWelcome to the installation of GNU Guix!\x1b[0m 348\x1b[1;37mWelcome to the installation of GNU Guix!\x1b[0m