doc: Improve choice of options in service examples.
* doc/guix.texi (Using the Configuration System): In example, set 'substitute-urls' rather than 'use-substitutes?', and set 'auto-login' for 'mingetty-configuration'. (Service Types and Services): In example, show 'extra-options' rather than 'use-substitutes?'.
This commit is contained in:
parent
229e04c66e
commit
e463ee4c7b
|
@ -12062,11 +12062,15 @@ following in your operating system declaration:
|
||||||
(guix-service-type config =>
|
(guix-service-type config =>
|
||||||
(guix-configuration
|
(guix-configuration
|
||||||
(inherit config)
|
(inherit config)
|
||||||
(use-substitutes? #f)
|
;; Fetch substitutes from example.org.
|
||||||
(extra-options '("--gc-keep-derivations"))))
|
(substitute-urls
|
||||||
|
(list "https://example.org/guix"
|
||||||
|
"https://ci.guix.gnu.org"))))
|
||||||
(mingetty-service-type config =>
|
(mingetty-service-type config =>
|
||||||
(mingetty-configuration
|
(mingetty-configuration
|
||||||
(inherit config)))))
|
(inherit config)
|
||||||
|
;; Automatially log in as "guest".
|
||||||
|
(auto-login "guest")))))
|
||||||
|
|
||||||
(operating-system
|
(operating-system
|
||||||
;; @dots{}
|
;; @dots{}
|
||||||
|
@ -30431,7 +30435,7 @@ A service of this type is instantiated like this:
|
||||||
(service guix-service-type
|
(service guix-service-type
|
||||||
(guix-configuration
|
(guix-configuration
|
||||||
(build-accounts 5)
|
(build-accounts 5)
|
||||||
(use-substitutes? #f)))
|
(extra-options '("--gc-keep-derivations"))))
|
||||||
@end lisp
|
@end lisp
|
||||||
|
|
||||||
The second argument to the @code{service} form is a value representing
|
The second argument to the @code{service} form is a value representing
|
||||||
|
|
Loading…
Reference in a new issue