From: Chris Marusich <cmmarusich@gmail.com>
To: Catonano <catonano@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: this conf doesnt work. Why ?
Date: Mon, 19 Mar 2018 05:08:02 +0100 [thread overview]
Message-ID: <87sh8wu2ql.fsf@gmail.com> (raw)
In-Reply-To: <CAJ98PDy58jHG+9U_Ssv7+tWV+4T++Vgzh4n4BAMiAPs+kVVjUQ@mail.gmail.com> (catonano@gmail.com's message of "Sat, 17 Mar 2018 21:46:38 +0100")
[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]
Catonano <catonano@gmail.com> writes:
> (define %my-services
> (modify-services
> (cons* (gnome-desktop-service)
> (cons*
> (service agetty-service-type
> (agetty-configuration (tty "ttyS0")))
> %desktop-services))
> (slim-service-type config =>
> (slim-configuration
> (inherit config)
> (startx (xorg-start-command
> #:configuration-file
> (xorg-configuration-file
> ;; Setup X to use a swiss german keyboard layout.
> #:extra-config
> '("Section \"InputClass\"
> Identifier \"keyboard-all\"
> Option \"XkbLayout\" \"ch\" ; <~ replace \"ch\" with \"it\"
> MatchIsKeyboard \"on\"
> EndSection"))))))))
This looks wrong to me. If this works, I think it's only by accident.
Check out the docstring for modify-services in gnu/services.scm, which
says:
Modify the services listed in SERVICES according to CLAUSES and return
the resulting list of services. Each clause must have the form:
(TYPE VARIABLE => BODY)
So, every clause after modify-services needs to have that form. This
may also be the reason why the length of your %my-services is the same
as %desktop-services. I think maybe the gnome-desktop-service and the
agetty-service-type service you've created are just being ignored
somehow.
Does this make sense?
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-03-19 4:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-17 20:46 this conf doesnt work. Why ? Catonano
2018-03-18 10:15 ` Thorsten Wilms
2018-03-18 11:38 ` Catonano
2018-03-18 11:42 ` Catonano
2018-03-19 4:08 ` Chris Marusich [this message]
2018-03-19 5:54 ` Catonano
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sh8wu2ql.fsf@gmail.com \
--to=cmmarusich@gmail.com \
--cc=catonano@gmail.com \
--cc=help-guix@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).