Re: unbound variable in attempt to install "lightdm"
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 -- OpenPGP_0x61FAF349C9FB7F94.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature
Re: unbound variable in attempt to install "lightdm"
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
Re: unbound variable in attempt to install "lightdm"
Hi Gottfried, On Fri, May 12, 2023 at 8:50 AM Gottfried 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
Re: unbound variable in attempt to install "lightdm"
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 (use-modules (gnu services lightdm)) 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 :) -- OpenPGP_0x61FAF349C9FB7F94.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature
Re: unbound variable in attempt to install "lightdm"
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 # …) 2168:25 8 (run-with-store # …) In guix/scripts/system.scm: 843:2 7 (_ _) 717:8 6 (_ #) In gnu/system.scm: 1298:19 5 (operating-system-derivation _) 835:11 4 (operating-system-services #< kernel:…>) 869:20 3 (services _) In /etc/config.scm: 30:21 2 (services #< kernel: #) 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 (use-modules (gnu services lightdm)) 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
unbound variable in attempt to install "lightdm"
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 # …) 2168:25 8 (run-with-store # …) In guix/scripts/system.scm: 843:2 7 (_ _) 717:8 6 (_ #) In gnu/system.scm: 1298:19 5 (operating-system-derivation _) 835:11 4 (operating-system-services #< kernel:…>) 869:20 3 (services _) In /etc/config.scm: 30:21 2 (services #< kernel: #) 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 OpenPGP_0x61FAF349C9FB7F94.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature