* unbound variable in attempt to install "lightdm"
@ 2023-05-12 15:05 Gottfried
2023-05-12 15:20 ` Mario Forzanini
0 siblings, 1 reply; 6+ messages in thread
From: Gottfried @ 2023-05-12 15:05 UTC (permalink / raw)
To: help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 2896 bytes --]
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.
Kind regards
Gottfried
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unbound variable in attempt to install "lightdm"
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
[not found] ` <95d43a2a-4425-6309-86dd-657ff46155da@posteo.de>
0 siblings, 2 replies; 6+ messages in thread
From: Mario Forzanini @ 2023-05-12 15:20 UTC (permalink / raw)
To: Gottfried; +Cc: help-guix
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unbound variable in attempt to install "lightdm"
2023-05-12 15:20 ` Mario Forzanini
@ 2023-05-12 15:50 ` Gottfried
2023-05-12 16:15 ` Felix Lechner via
[not found] ` <95d43a2a-4425-6309-86dd-657ff46155da@posteo.de>
1 sibling, 1 reply; 6+ messages in thread
From: Gottfried @ 2023-05-12 15:50 UTC (permalink / raw)
To: Mario Forzanini; +Cc: help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 1365 bytes --]
Hi,
thanks for help
I added this line in my config.scm
---------------------------------------
(use-modules (gnu))
(use-modules (gnu services lightdm))
(use-package-modules cups scanner)
(use-service-modules cups desktop networking ssh xorg virtualization)
--------------------------------------
after running sudo guix system reconvigure....
it says:
mistake: the service "xorg-server" appears more than one time.
--------------------------------------------------
because gdm is also installed.
So can I have both installed?
kind regards
Gottfried
Am 12.05.23 um 17:20 schrieb Mario Forzanini:
>
> 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 :)
--
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unbound variable in attempt to install "lightdm"
2023-05-12 15:50 ` Gottfried
@ 2023-05-12 16:15 ` Felix Lechner via
2023-05-13 12:44 ` Gottfried
0 siblings, 1 reply; 6+ messages in thread
From: Felix Lechner via @ 2023-05-12 16:15 UTC (permalink / raw)
To: Gottfried; +Cc: Mario Forzanini, help-guix
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unbound variable in attempt to install "lightdm"
[not found] ` <95d43a2a-4425-6309-86dd-657ff46155da@posteo.de>
@ 2023-05-12 16:33 ` Mario Forzanini
0 siblings, 0 replies; 6+ messages in thread
From: Mario Forzanini @ 2023-05-12 16:33 UTC (permalink / raw)
To: Gottfried; +Cc: help-guix
On 5/12/23 5:53 PM, Gottfried wrote:
> If I open emacs
> and enter
> M-x guix Return
> it gives me only one option:
> emacs autoload packages
>
> so I am not sure what you mean by:
> 'M-x guix RET s a'
You should install emacs-guix[0] first, I'd suggest installing it via
guix, but you can also use `package-install' in Emacs if you prefer (in
that case it's called 'guix').
--
Mario
[0]https://emacs-guix.github.io/website
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unbound variable in attempt to install "lightdm"
2023-05-12 16:15 ` Felix Lechner via
@ 2023-05-13 12:44 ` Gottfried
0 siblings, 0 replies; 6+ messages in thread
From: Gottfried @ 2023-05-13 12:44 UTC (permalink / raw)
To: Felix Lechner; +Cc: Mario Forzanini, help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 4057 bytes --]
Hi,
after adding this sentence
I get the same message
gfp@Tuxedo /etc$ sudo guix system reconfigure /etc/config.scm
Passwort:
guix system: Fehler: Der Dienst „xorg-server“ kommt mehr als einmal vor
guix system: Error: The service "xorg-server" occurs more than once
it means I would have to change something in my config.scm
I added now 3 lines about lightdm (one is deleting gdm) see: ;;added
---------------------------------------------------------------
config.scm
;; This is an operating system configuration generated
;; by the graphical installer.
(use-modules (gnu))
(use-modules (gnu services lightdm)) ;;added
(use-package-modules cups scanner)
(use-service-modules cups desktop networking ssh xorg virtualization)
(operating-system
(locale "de_DE.utf8")
(timezone "Europe/Berlin")
(keyboard-layout (keyboard-layout "de"))
(host-name "Tuxedo")
(users (cons* (user-account
(name "gfp")
(comment "Gfp")
(group "users")
(home-directory "/home/gfp")
(supplementary-groups
'("wheel" "netdev" "audio" "video" "libvirt")))
%base-user-accounts))
(packages
(append
(list (specification->package "nss-certs"))
%base-packages))
(services
(append
(list (service mate-desktop-service-type)
(service enlightenment-desktop-service-type)
(service xfce-desktop-service-type)
(service lightdm-service-type) ;;added
(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)))
(service libvirt-service-type
(libvirt-configuration
(unix-sock-group "libvirt")
(tls-port "16555")))
(service virtlog-service-type
(virtlog-configuration
(max-clients 1000))))
(modify-services %desktop-services
(guix-service-type
config => (guix-configuration
(inherit config)
(extra-options (list "--gc-keep-derivations=yes"
"--gc-keep-outputs=yes"))))
(delete gdm-service-type) ;;added
(sane-service-type _ => sane-backends))))
(bootloader
(bootloader-configuration
(bootloader grub-efi-bootloader)
(targets (list "/boot/efi"))
(keyboard-layout keyboard-layout)))
(swap-devices
(list (swap-space
(target (uuid "51d5cd20-4513-4a02-9e35-df4338eccaa0")))))
(file-systems
(cons* (file-system
(mount-point "/boot/efi")
(device (uuid "BB77-FE3B" 'fat32))
(type "vfat"))
(file-system
(mount-point "/")
(device
(uuid "4fb0ed7c-61ab-45eb-be0b-ff527b320e6d"
'ext4))
(type "ext4"))
%base-file-systems))
(initrd-modules (cons "virtio_scsi" ; Needed to find the disk
%base-initrd-modules)))
-----------------------------------------------------------------------
Kind regards
Gottfried
Am 12.05.23 um 18:15 schrieb Felix Lechner:
> %desktop-services
>
> in your list of services with something like
>
> (modify-services %desktop-services
> (delete gdm-service-type))
>
>
> Kind regards
> Felix
--
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-05-13 12:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-05-13 12:44 ` Gottfried
[not found] ` <95d43a2a-4425-6309-86dd-657ff46155da@posteo.de>
2023-05-12 16:33 ` Mario Forzanini
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.