all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mario Forzanini <mf@marioforzanini.com>
To: Gottfried <gottfried@posteo.de>
Cc: help-guix@gnu.org
Subject: Re: unbound variable in attempt to install "lightdm"
Date: Fri, 12 May 2023 17:20:44 +0200	[thread overview]
Message-ID: <37a4003a-7de3-5b1b-4a27-5542a199704c@marioforzanini.com> (raw)
In-Reply-To: <4479a895-f3a8-ef4d-8c16-6024f905fe77@posteo.de>

On 5/12/23 5:05 PM, Gottfried wrote:
> Hi,
> 
> I managed to update my packages in my default profile without updating 
> "caja-extensions"
> 
> So now I would like to install "lightdm"
> ----------------------------------------------------------------
> I added one line in my config.scm:
> 
>   (services
>      (append
>        (list (service mate-desktop-service-type)
>              (service enlightenment-desktop-service-type)
>              (service xfce-desktop-service-type)
>              (service lightdm-service-type)
>                          (service cups-service-type
>                                  (cups-configuration
>                                          (web-interface? #t)
>                                          (extensions (list cups-filters 
> hplip))))
>                          (service openssh-service-type)
>              (service tor-service-type)
>              (set-xorg-configuration
>                (xorg-configuration
>                 (keyboard-layout keyboard-layout)))
> 
> ------------------------------------------------------------------
> 
> running sudo guix system configure.. it gives me those messages:
> 
> 
> gfp@Tuxedo ~$  sudo guix system reconfigure /etc/config.scm
> Passwort:
> Backtrace:
>            18 (primitive-load "/home/gfp/.config/guix/current/bin/guix")
> In guix/ui.scm:
>     2300:7 17 (run-guix . _)
>    2263:10 16 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>    1752:10 15 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/status.scm:
>      859:3 14 (_)
>      839:4 13 (call-with-status-report _ _)
> In guix/scripts/system.scm:
>     1277:4 12 (_)
> In ice-9/boot-9.scm:
>    1752:10 11 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/store.scm:
>     659:37 10 (thunk)
>     1298:8  9 (call-with-build-handler #<procedure 7f853cc40a50 at g…> …)
>    2168:25  8 (run-with-store #<store-connection 256.99 7f8559435230> …)
> In guix/scripts/system.scm:
>      843:2  7 (_ _)
>      717:8  6 (_ #<store-connection 256.99 7f8559435230>)
> In gnu/system.scm:
>    1298:19  5 (operating-system-derivation _)
>     835:11  4 (operating-system-services #<<operating-system> kernel:…>)
>     869:20  3 (services _)
> In /etc/config.scm:
>      30:21  2 (services #<<operating-system> kernel: #<package linux-…>)
> In ice-9/boot-9.scm:
>    1685:16  1 (raise-exception _ #:continuable? _)
>    1685:16  0 (raise-exception _ #:continuable? _)
> 
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> Fehler: lightdm-service-type: Nicht gebundene Variable
> gfp@Tuxedo ~$ JavaScript error: 
> resource://gre/modules/LoginManagerChild.jsm, line 250: 
> NS_ERROR_FAILURE: Component returned failure code: 0x80004005 
> (NS_ERROR_FAILURE) [nsIAutoCompleteInput.popup]
> ----------------------------------------------------------------------------
> 
> it seems that I need to add something in my config.scm concerning lightdm.
> 
> Unfortunately I don’t know what to add.

At the beginning of the file there should be a list of imported modules, 
you should add something like

<snip>
(use-modules (gnu services lightdm))
<snap>

Which is the Guile module in which the symbol `lightdm-service-type' is 
defined, without that Guile won't know how to relate that symbol to any 
meaningful value.

If you want to find where a service is defined you could use the emacs 
interface for Guix: typing 'M-x guix RET s a' gives you a list of 
clickable service names, when you click on one of them useful info pops 
up. There's probably a way to do it with the command-line interface, but 
I'm not familiar with that.

I hope this helps :)
-- 
Mario



  reply	other threads:[~2023-05-12 15:21 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 [this message]
2023-05-12 15:50   ` Gottfried
2023-05-12 16:15     ` Felix Lechner via
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37a4003a-7de3-5b1b-4a27-5542a199704c@marioforzanini.com \
    --to=mf@marioforzanini.com \
    --cc=gottfried@posteo.de \
    --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.
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.