unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "André A. Gomes" <andremegafone@gmail.com>
To: 55391@debbugs.gnu.org
Cc: dev@jpoiret.xyz
Subject: bug#55391: Multiple slim services
Date: Mon, 16 May 2022 22:39:55 +0100	[thread overview]
Message-ID: <87fsl9ma1g.fsf@gmail.com> (raw)
In-Reply-To: <87bkw2szrt.fsf@jpoiret.xyz> (Josselin Poiret via Bug reports for's message of "Fri, 13 May 2022 08:38:30 +0200")

Josselin Poiret via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

> Hello André,
>
> André A. Gomes <andremegafone@gmail.com> writes:
>
>> Hi Guix,
>>
>> The manual (see (info "(guix) X Window")) mentions that it's possible to
>> add two slim services but it seems not to work.  When I tried to
>> reconfigure the system it gives the following error:
>>
>> --8<---------------cut here---------------start------------->8---
>> guix system: error: more than one target service of type 'slim'
>> --8<---------------cut here---------------end--------------->8---
>
> If I understand the relevant code properly, this should happen only when
> you try to extend a service type (eg. slim-service-type) with another
> service, but you have multiple instances of the given service type, and
> so guix system can't disambiguate between the two (it would be better if
> you could manually specify that imho, but alas).  Could you post a
> snippet of your config, especially the service part?

Here it goes.  The manual states that you can have two slim services on
different ttys.  Am I misinterpreting something?  Thank you!

--8<---------------cut here---------------start------------->8---
(services (cons* (set-xorg-configuration (xorg-configuration
                                            (modules (list xf86-input-libinput
		                                                   xf86-input-evdev
                                                           xf86-input-wacom))
                                            (keyboard-layout keyboard-layout)
                                            (server-arguments
                                             ;; disable screen-saver timeout
                                             (append (list "-s" "0")
                                                     %default-xorg-server-arguments))
                                            (extra-config (list xorg-touchpad
                                                                xorg-monitor)))
                                           slim-service-type)
                   (service slim-service-type (slim-configuration (display ":0")
                                                                  (vt "vt7")))
                   ;; Doesn't work to add a 2nd service of the same type,
                   ;; contrary to what the docs say
                   ;; (service slim-service-type (slim-configuration (display ":0")
                   ;;                                                (vt "vt8")))
                   (modify-services %desktop-services
                     (guix-service-type
                      config => (guix-configuration
                                 (inherit config)
                                 (substitute-urls
                                  (append (list "https://substitutes.nonguix.org")
                                          %default-substitute-urls))
                                 (authorized-keys
                                  (append (list (plain-file "non-guix.pub"
                                                            nonguix-key))
                                          %default-authorized-guix-keys))))
                     (delete gdm-service-type)
                     (delete (screen-locker-service xlockmore "xlock")))))
--8<---------------cut here---------------end--------------->8---


-- 
André A. Gomes
"You cannot even find the ruins..."




  reply	other threads:[~2022-05-16 22:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-12 21:56 bug#55391: Multiple slim services André A. Gomes
2022-05-13  6:38 ` Josselin Poiret via Bug reports for GNU Guix
2022-05-16 21:39   ` André A. Gomes [this message]
2022-05-16 23:29     ` Carlo Zancanaro
2022-05-17 15:31       ` André A. Gomes
2022-05-17 15:38       ` André A. Gomes

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=87fsl9ma1g.fsf@gmail.com \
    --to=andremegafone@gmail.com \
    --cc=55391@debbugs.gnu.org \
    --cc=dev@jpoiret.xyz \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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