From: ludo@gnu.org (Ludovic Courtès)
To: Omar Radwan <toxemicsquire4@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Advanced Config Template
Date: Tue, 20 Jan 2015 22:17:26 +0100 [thread overview]
Message-ID: <87bnlt17a1.fsf@gnu.org> (raw)
In-Reply-To: <CAMwaQAL0T6D1PNN3MhzqZxfrPJ5_WJRmKRY7UhpyHSSXS56AoA@mail.gmail.com> (Omar Radwan's message of "Mon, 19 Jan 2015 19:42:47 -0800")
Omar Radwan <toxemicsquire4@gmail.com> skribis:
> I'm trying to install guix in a way that I have X, tor and networking on
> the fly right after install, but I'm having a very hard time with the
> declaration services. This is my config.scm
>
> (use-modules (gnu))
>
> (operating-system
> (host-name "Atom")
> (timezone "US/Pacific")
> (locale "en_US.UTF-8")
> (bootloader (grub-configuration (device "/dev/sda")))
> (file-systems (cons (file-system
> (device "/dev/sda1")
> (mount-point "/")
> (type "ext4"))
> %base-file-systems))
> (users (list (user-account
> (name "omar")
> (group "users")
>
>
> (supplementary-groups '("wheel"
> "audio" "video"))
> (home-directory "/home/omar")))))
This is good. Now you need to declare what services in addition to the
base services you’d like to run.
To do that, add a ‘services’ field in the ‘operating-system’ declaration
above (see
<http://www.gnu.org/software/guix/manual/guix.html#Using-the-Configuration-System>):
(services (cons* (tor-service)
(slim-service)
%base-services))
‘slim-service’ is called this way because it starts Xorg with the SLiM
login manager; see
<http://www.gnu.org/software/guix/manual/guix.html#X-Window>.
HTH!
Ludo’.
prev parent reply other threads:[~2015-01-20 21:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 3:42 Advanced Config Template Omar Radwan
2015-01-20 21:17 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bnlt17a1.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=toxemicsquire4@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.