summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorRutherther <rutherther@ditigal.xyz>2025-12-16 12:24:42 +0100
committerRutherther <rutherther@ditigal.xyz>2025-12-22 23:00:46 +0100
commite2857e21fa54ff72b4adabf95841d61fb820d55f (patch)
treef3523a1aafc62ddb830f8f58814634c61efb39ea /gnu/system
parent105dbf7deec8599b2175bb3a6798ce726ece0154 (diff)
system: install: Remove current-guix url override.
Prefer parameterization of current-guix in release artifacts generation. * gnu/system/install.scm (%installation-service): Use (current-guix) directly in guix service configuration. Change-Id: Ifa363465e6a4f6936d0e51eaf1b33872519e2b0a Signed-off-by: Rutherther <rutherther@ditigal.xyz>
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