summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/guix.texi4
-rw-r--r--gnu/machine.scm12
-rw-r--r--gnu/machine/ssh.scm2
3 files changed, 9 insertions, 9 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 5d274e02fe3..734206a4b29 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -25510,7 +25510,7 @@ evaluates to. As an example, @var{file} might contain a definition like this:
25510 %base-services)))) 25510 %base-services))))
25511 25511
25512(list (machine 25512(list (machine
25513 (system %system) 25513 (operating-system %system)
25514 (environment managed-host-environment-type) 25514 (environment managed-host-environment-type)
25515 (configuration (machine-ssh-configuration 25515 (configuration (machine-ssh-configuration
25516 (host-name "localhost") 25516 (host-name "localhost")
@@ -25551,7 +25551,7 @@ This is the data type representing a single machine in a heterogeneous Guix
25551deployment. 25551deployment.
25552 25552
25553@table @asis 25553@table @asis
25554@item @code{system} 25554@item @code{operating-system}
25555The object of the operating system configuration to deploy. 25555The object of the operating system configuration to deploy.
25556 25556
25557@item @code{environment} 25557@item @code{environment}
diff --git a/gnu/machine.scm b/gnu/machine.scm
index 0b79402b0a8..30ae97f6ecb 100644
--- a/gnu/machine.scm
+++ b/gnu/machine.scm
@@ -34,7 +34,7 @@
34 machine? 34 machine?
35 this-machine 35 this-machine
36 36
37 machine-system 37 machine-operating-system
38 machine-environment 38 machine-environment
39 machine-configuration 39 machine-configuration
40 machine-display-name 40 machine-display-name
@@ -85,14 +85,14 @@
85 make-machine 85 make-machine
86 machine? 86 machine?
87 this-machine 87 this-machine
88 (system machine-system) ; <operating-system> 88 (operating-system machine-operating-system) ; <operating-system>
89 (environment machine-environment) ; symbol 89 (environment machine-environment) ; symbol
90 (configuration machine-configuration ; configuration object 90 (configuration machine-configuration ; configuration object
91 (default #f))) ; specific to environment 91 (default #f))) ; specific to environment
92 92
93(define (machine-display-name machine) 93(define (machine-display-name machine)
94 "Return the host-name identifying MACHINE." 94 "Return the host-name identifying MACHINE."
95 (operating-system-host-name (machine-system machine))) 95 (operating-system-host-name (machine-operating-system machine)))
96 96
97(define (machine-remote-eval machine exp) 97(define (machine-remote-eval machine exp)
98 "Evaluate EXP, a gexp, on MACHINE. Ensure that all the elements EXP refers to 98 "Evaluate EXP, a gexp, on MACHINE. Ensure that all the elements EXP refers to
diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm
index 552eafa9de0..d1c90b63134 100644
--- a/gnu/machine/ssh.scm
+++ b/gnu/machine/ssh.scm
@@ -166,7 +166,7 @@ of MACHINE's system profile, ordered from most recent to oldest."
166environment type of 'managed-host." 166environment type of 'managed-host."
167 (maybe-raise-unsupported-configuration-error machine) 167 (maybe-raise-unsupported-configuration-error machine)
168 (mlet %store-monad ((boot-parameters (machine-boot-parameters machine))) 168 (mlet %store-monad ((boot-parameters (machine-boot-parameters machine)))
169 (let* ((os (machine-system machine)) 169 (let* ((os (machine-operating-system machine))
170 (eval (cut machine-remote-eval machine <>)) 170 (eval (cut machine-remote-eval machine <>))
171 (menu-entries (map boot-parameters->menu-entry boot-parameters)) 171 (menu-entries (map boot-parameters->menu-entry boot-parameters))
172 (bootloader-configuration (operating-system-bootloader os)) 172 (bootloader-configuration (operating-system-bootloader os))