unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Catonano <catonano@gmail.com>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: this conf doesnt work. Why ?
Date: Mon, 19 Mar 2018 06:54:08 +0100	[thread overview]
Message-ID: <CAJ98PDyoKD4GV63mEZEjw5NNsV3Oc-htL6S8nu0YWiAPkGsqXg@mail.gmail.com> (raw)
In-Reply-To: <87sh8wu2ql.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3047 bytes --]

2018-03-19 5:08 GMT+01:00 Chris Marusich <cmmarusich@gmail.com>:

> 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
>

Yes, the version you are commenting is not current anymore ;-)

I did read the manual and I wrote snippets that I experimented in a REPL

The current version mostly works, my services aren't being ignored anymore

The problem I'm having now is that Xorg doesn't like the configuration I'm
providing it with

But the Scheme code I wrote is working

I'm not gonna delve into Xorg conf though. Not my thing, sorry

I pasted an excerpt of the log it's giving me, anyway

This is the version that is working right now

(define %my-services
  (modify-services
      %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\"
;        MatchIsKeyboard \"on\"
;EndSection"))))))
    (gnome-desktop-service-type config => (gnome-desktop-configuration
(inherit config)))
    (agetty-service-type config => (agetty-configuration (inherit config)
                             (tty "ttyS0")))
    (xfce-desktop-service-type config => (xfce-desktop-configuration
(inherit config)))

    ))

[-- Attachment #2: Type: text/html, Size: 4669 bytes --]

      reply	other threads:[~2018-03-19  5:54 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
2018-03-19  5:54   ` Catonano [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

  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=CAJ98PDyoKD4GV63mEZEjw5NNsV3Oc-htL6S8nu0YWiAPkGsqXg@mail.gmail.com \
    --to=catonano@gmail.com \
    --cc=cmmarusich@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).