Commit 9ccd5beb authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

README: Spice up the text.

* README.md (Pre-built binaries): Add markup, indent service example.
parent 737a3fb6
...@@ -72,24 +72,25 @@ with this repository. ...@@ -72,24 +72,25 @@ with this repository.
systemctl restart guix-daemon.service systemctl restart guix-daemon.service
``` ```
On guix system itself, services are handled with shepherd. You can for On Guix System itself, services are handled by the Shepherd. You can for
instance declare a customized list of services %my-service (here derived instance declare a customized list of services `%my-service` (here derived
from %desktop-services but you may want to derive it from %base-services on from `%desktop-services` but you may want to derive it from `%base-services` on
a server-only system) in your /etc/config.scm configuration file: a server-only system) in your `/etc/config.scm` configuration file:
``` ```scheme
(define %my-services (define %my-services
(modify-services %desktop-services (modify-services %desktop-services
(guix-service-type config => (guix-service-type config =>
(guix-configuration (guix-configuration
(inherit config) (inherit config)
(substitute-urls '("https://ci.guix.gnu.org" "https://guix.bordeaux.inria.fr")))))) (substitute-urls '("https://ci.guix.gnu.org"
"https://guix.bordeaux.inria.fr"))))))
``` ```
These customized services can then be used in the declaration of your These customized services can then be used in the declaration of your
operating system further in the same /etc/config.scm configuration file: operating system further in the same /etc/config.scm configuration file:
``` ```scheme
(operating-system (operating-system
;; ... ;; ...
(services %my-services) (services %my-services)
...@@ -101,7 +102,7 @@ with this repository. ...@@ -101,7 +102,7 @@ with this repository.
only, you will likely append typical additional services you use to it, only, you will likely append typical additional services you use to it,
such as in the following example: such as in the following example:
``` ```scheme
(services (services
(append (append
(list (service gnome-desktop-service-type) (list (service gnome-desktop-service-type)
...@@ -114,7 +115,7 @@ with this repository. ...@@ -114,7 +115,7 @@ with this repository.
%my-services)) %my-services))
``` ```
Once the /etc/config.scm has been set up, the system can be reconfigured: Once the `/etc/config.scm` has been set up, the system can be reconfigured:
``` ```
sudo guix system reconfigure /etc/config.scm sudo guix system reconfigure /etc/config.scm
``` ```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment