help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unbound variable in attempt to install "lightdm"


From: Mario Forzanini
Subject: Re: unbound variable in attempt to install "lightdm"
Date: Fri, 12 May 2023 17:20:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

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 via email to

[Prev in Thread] Current Thread [Next in Thread]