mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
services: host-name: Use the host name as the running value.
Previously, the “running value” of the ‘host-name’ service would be #<unspecified>. This change makes it more pleasing to the eye. * gnu/services/base.scm (host-name-service-type): ‘start’ returns NAME. Change-Id: I38b8320e43639b6623475871ca6fbad3a459eb59
This commit is contained in:
parent
9d17cda3d9
commit
89fdc4b45f
1 changed files with 2 additions and 1 deletions
|
@ -801,7 +801,8 @@ (define host-name-service-type
|
||||||
(documentation "Initialize the machine's host name.")
|
(documentation "Initialize the machine's host name.")
|
||||||
(provision '(host-name))
|
(provision '(host-name))
|
||||||
(start #~(lambda _
|
(start #~(lambda _
|
||||||
(sethostname #$name)))
|
(sethostname #$name)
|
||||||
|
#$name))
|
||||||
(one-shot? #t)))
|
(one-shot? #t)))
|
||||||
(description "Initialize the machine's host name.")))
|
(description "Initialize the machine's host name.")))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue