From: Felix Lechner via <help-guix@gnu.org>
To: Gottfried <gottfried@posteo.de>
Cc: Mario Forzanini <mf@marioforzanini.com>, help-guix@gnu.org
Subject: Re: unbound variable in attempt to install "lightdm"
Date: Fri, 12 May 2023 09:15:23 -0700 [thread overview]
Message-ID: <CAFHYt56sntGR9hz=Quak+KWWd2K_BxJhj2oKCSKnXGih+_MBTA@mail.gmail.com> (raw)
In-Reply-To: <f1f3cc64-bc18-4316-bb45-ba947b491f0b@posteo.de>
Hi Gottfried,
On Fri, May 12, 2023 at 8:50 AM Gottfried <gottfried@posteo.de> wrote:
>
> So can I have both installed?
It's possible to have the packages for two display managers installed
at the same time, but the system can only be configured to use one at
any given time. Guix services do both: They install the package and
cause the display manager to control your graphical devices. That's
why you can only use one Guix service at a time.
I believe that %desktop-services already configures a gdm-service-type
for you because that's the standard graphical login manager we provide
in Guix. That's why you should drop gdm-service-type from
%desktop-services when adding lightdm-service-type. I believe that is
the source of the error message you saw.
I do not use %desktop-services personally, but also drop some services
from %base-services. You can see how I did that here. [1] You
basically have to replace the expression
%desktop-services
in your list of services with something like
(modify-services %desktop-services
(delete gdm-service-type))
At first sight, it does not look very intuitive, but you can make
sense of it with a functional programming perspective. (Functional
programming is a reason why many of us prefer Guix over other
operating systems.) When the expression inside outermost parentheses
is executed, you get a modified %desktop-services without
gdm-service-type. I believe that's what you want and need.
I am kind of new here, however, and am happy to defer to more
experienced Guix users and developers.
Kind regards
Felix
[1] https://codeberg.org/lechner/system-config/commit/42ecb69ff9ca0af7739e3c51a5d368aaa6e6d218
next prev parent reply other threads:[~2023-05-12 16:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-12 15:05 unbound variable in attempt to install "lightdm" Gottfried
2023-05-12 15:20 ` Mario Forzanini
2023-05-12 15:50 ` Gottfried
2023-05-12 16:15 ` Felix Lechner via [this message]
2023-05-13 12:44 ` Gottfried
[not found] ` <95d43a2a-4425-6309-86dd-657ff46155da@posteo.de>
2023-05-12 16:33 ` Mario Forzanini
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='CAFHYt56sntGR9hz=Quak+KWWd2K_BxJhj2oKCSKnXGih+_MBTA@mail.gmail.com' \
--to=help-guix@gnu.org \
--cc=felix.lechner@lease-up.com \
--cc=gottfried@posteo.de \
--cc=mf@marioforzanini.com \
/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).