* Advanced Config Template
@ 2015-01-20 3:42 Omar Radwan
2015-01-20 21:17 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Omar Radwan @ 2015-01-20 3:42 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]
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")))))
I'm not sure how I would exactly be able to do it, but I barely know
anything about Scheme and how its functions work, I hope I'm not
wasting anyones time by asking a stupid question like this, and I hope
someone would be able to help me.
[-- Attachment #2: Type: text/html, Size: 1639 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Advanced Config Template
2015-01-20 3:42 Advanced Config Template Omar Radwan
@ 2015-01-20 21:17 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-01-20 21:17 UTC (permalink / raw)
To: Omar Radwan; +Cc: guix-devel
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’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-20 21:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-20 3:42 Advanced Config Template Omar Radwan
2015-01-20 21:17 ` Ludovic Courtès
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.