* bug#55391: Multiple slim services
@ 2022-05-12 21:56 André A. Gomes
2022-05-13 6:38 ` Josselin Poiret via Bug reports for GNU Guix
0 siblings, 1 reply; 6+ messages in thread
From: André A. Gomes @ 2022-05-12 21:56 UTC (permalink / raw)
To: 55391
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---
Thanks.
--
André A. Gomes
"You cannot even find the ruins..."
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#55391: Multiple slim services
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
0 siblings, 1 reply; 6+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2022-05-13 6:38 UTC (permalink / raw)
To: André A. Gomes, 55391
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?
Best,
--
Josselin Poiret
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#55391: Multiple slim services
2022-05-13 6:38 ` Josselin Poiret via Bug reports for GNU Guix
@ 2022-05-16 21:39 ` André A. Gomes
2022-05-16 23:29 ` Carlo Zancanaro
0 siblings, 1 reply; 6+ messages in thread
From: André A. Gomes @ 2022-05-16 21:39 UTC (permalink / raw)
To: 55391; +Cc: dev
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..."
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#55391: Multiple slim services
2022-05-16 21:39 ` André A. Gomes
@ 2022-05-16 23:29 ` Carlo Zancanaro
2022-05-17 15:31 ` André A. Gomes
2022-05-17 15:38 ` André A. Gomes
0 siblings, 2 replies; 6+ messages in thread
From: Carlo Zancanaro @ 2022-05-16 23:29 UTC (permalink / raw)
To: André A. Gomes; +Cc: 55391, dev
Hi André,
On Mon, May 16 2022, André A. Gomes wrote:
> Here it goes. The manual states that you can have two slim
> services on different ttys. Am I misinterpreting something?
> Thank you!
I don't think you're misinterpreting anything, but Josselin is
correct when they say
On Fri, May 13 2022, Josselin Poiret wrote:
> 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
In your case, you're using set-xorg-configuration which tries to
extend your slim-service-type service. Unfortunately, you want to
define two of them, which causes the extension mechanism to fail
complaining about the ambiguity.
You should be able to fix this by adding the xorg-configuration
directly into the slim service that you're defining, something
like this:
(cons* (service slim-service-type (slim-configuration
(display ":0")
(vt "vt7")
(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))))))
(service slim-service-type (slim-configuration
(display ":0")
(vt "vt8")
;; I wasn't sure if you
wanted the same
;; xorg-configuration here,
so I left it out.
))
(modify-services %desktop-services
(delete gdm-service-type)
(delete (screen-locker-service xlockmore "xlock"))))
I hope that helps,
Carlo
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#55391: Multiple slim services
2022-05-16 23:29 ` Carlo Zancanaro
@ 2022-05-17 15:31 ` André A. Gomes
2022-05-17 15:38 ` André A. Gomes
1 sibling, 0 replies; 6+ messages in thread
From: André A. Gomes @ 2022-05-17 15:31 UTC (permalink / raw)
To: Carlo Zancanaro; +Cc: 55391, dev
Carlo Zancanaro <carlo@zancanaro.id.au> writes:
> Hi André,
>
> On Mon, May 16 2022, André A. Gomes wrote:
>> Here it goes. The manual states that you can have two slim services
>> on different ttys. Am I misinterpreting something? Thank you!
>
> I don't think you're misinterpreting anything, but Josselin is correct
> when they say
>
> On Fri, May 13 2022, Josselin Poiret wrote:
>> 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
>
> In your case, you're using set-xorg-configuration which tries to extend
> your slim-service-type service. Unfortunately, you want to define two of
> them, which causes the extension mechanism to fail complaining about the
> ambiguity.
>
> You should be able to fix this by adding the xorg-configuration directly
> into the slim service that you're defining, something like this:
>
> (cons* (service slim-service-type (slim-configuration
> (display ":0")
> (vt "vt7")
> (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))))))
> (service slim-service-type (slim-configuration
> (display ":0")
> (vt "vt8")
> ;; I wasn't sure if you
> wanted the same
> ;; xorg-configuration here,
> so I left it out.
> ))
> (modify-services %desktop-services
> (delete gdm-service-type)
> (delete (screen-locker-service xlockmore "xlock"))))
Hi Carlo Zancanaro,
It all makes sense now! I really appreciate your help, thanks :)
--
André A. Gomes
"You cannot even find the ruins..."
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#55391: Multiple slim services
2022-05-16 23:29 ` Carlo Zancanaro
2022-05-17 15:31 ` André A. Gomes
@ 2022-05-17 15:38 ` André A. Gomes
1 sibling, 0 replies; 6+ messages in thread
From: André A. Gomes @ 2022-05-17 15:38 UTC (permalink / raw)
To: 55391-done; +Cc: 55391
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-05-17 15:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2022-05-16 23:29 ` Carlo Zancanaro
2022-05-17 15:31 ` André A. Gomes
2022-05-17 15:38 ` André A. Gomes
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.