• Skullgrid
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 days ago

    can you teach me how to make a config file that only has lxqt? I tried the thing below replacing XFCE with LXQT and failed loads, I’m tired of wasting gigs and hours trying to make it work when I’m sleepy.

    spoiler
    ;; This is an operating system configuration generated
    ;; by the graphical installer.
    ;;
    ;; Once installation is complete, you can learn and modify
    ;; this file to tweak the system configuration, and pass it
    ;; to the 'guix system reconfigure' command to effect your
    ;; changes.
    
    
    ;; Indicate which modules to import to access the variables
    ;; used in this configuration.
    (use-modules (gnu))
    (use-service-modules cups desktop networking ssh xorg wm)
    
    (operating-system
      (locale "en_GB.utf8")
      (timezone "America/place")
      (keyboard-layout (keyboard-layout "gb"))
      (host-name "pc")
    
      ;; The list of user accounts ('root' is implicit).
      (users (cons* (user-account
                      (name "name")
                      (comment "name")
                      (group "users")
                      (home-directory "/home/name")
                      (supplementary-groups '("wheel" "netdev" "audio" "video")))
                    %base-user-accounts))
    
      ;; Packages installed system-wide.  Users can also install packages
      ;; under their own account: use 'guix search KEYWORD' to search
      ;; for packages and 'guix install PACKAGE' to install a package.
      (packages (append (list
                              (specification->package "xterm")) %base-packages))
    
      ;; Below is the list of system services.  To search for available
      ;; services, run 'guix system search KEYWORD' in a terminal.
      (services
       (append (list (service xfce-desktop-service-type) ;; I replaced this with  lxqt-desktop-service-type and it didn't "start" the DE properly when I logged in, I just got a blank screen, or worse, it failed to install properly with different "rest of the file"
    
                     ;; To configure OpenSSH, pass an 'openssh-configuration'
                     ;; record as a second argument to 'service' below.
                     (service openssh-service-type)
                     (set-xorg-configuration
                      (xorg-configuration (keyboard-layout keyboard-layout))))
    
               ;; This is the default list of services we
               ;; are appending to.
               %desktop-services))
      (bootloader (bootloader-configuration
                    (bootloader grub-bootloader)
                    (targets (list "/dev/vda"))
                    (keyboard-layout keyboard-layout)))
      (swap-devices (list (swap-space
                            (target (uuid
                                     "666id")))))
    
      ;; The list of file systems that get "mounted".  The unique
      ;; file system identifiers there ("UUIDs") can be obtained
      ;; by running 'blkid' in a terminal.
      (file-systems (cons* (file-system
                             (mount-point "/")
                             (device (uuid
                                      "666id"
                                      'ext4))
                             (type "ext4")) %base-file-systems)))
    
    

    This is just to run in a VM in Virtual Machine Manager

    • juipeltje
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      What error are you getting? Does it reconfigure succesfully?

      • Skullgrid
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        If it does reconfigure successfully, it just gives a blank screen, or takes me to the terminal login prompt instead of a GUI login prompt.

        I tried other things and it fails after hours of downloading packages and building. Does it seem right to you? What do you think I might be missing?

        • juipeltje
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          2 days ago

          Well from a glance the config looks fine. I looked at the documentation but there’s not a lot of information on what the lxqt service actually includes. My first guess as to why it drops you to a tty is that perhaps it doesn’t include a display manager.

          Edit: actually nevermind, you’re appending to %desktop-services and i’m pretty sure that includes gdm. Maybe the problem lies in gdm trying to use wayland by default. There’s an option to change that, i’ll see if i can find it.

          • Skullgrid
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            thanks so much. The documentation that I’ve glanced just makes it seem so easy, “just replace X with Y and nothing more!”

            • juipeltje
              link
              fedilink
              arrow-up
              2
              ·
              2 days ago

              I’m not sure if this will work, but what you can try is replacing the %desktop-services with this:

              (modify-services %desktop-services
                (gdm-service-type config =>
                                                 (gdm-configuration
                                                   (inherit config)
                                                   (wayland? #f))))
              

              I’m not sure if wayland is actually the problem though, especially if gdm was working fine before you swapped to lxqt. Another thing i’m thinking of is maybe lxqt isn’t properly exposing a session file to gdm, and perhaps gdm crashes because it doesn’t find any sessions to start. I think i’ve seen other people adding this session file manually but i would have to look up how it’s done. The thing is i don’t use a DE myself, and i’m using greetd+gtkgreet as a display manager and it just launches me into a tty, and then my bash_profile has a snippet that checks which tty i’m and whether it’s empty, and if it is it launches my wayland compositor of choice.

              • Skullgrid
                link
                fedilink
                arrow-up
                1
                ·
                20 hours ago

                thanks for trying. I did that, I get to the login, and then I get a mouse and a black screen after the login still. I basically did (more or less):

                before
                  (services
                   (append (list (service xfce-desktop-service-type)
                
                                 ;; To configure OpenSSH, pass an 'openssh-configuration'
                                 ;; record as a second argument to 'service' below.
                                 (service openssh-service-type)
                                 (set-xorg-configuration
                                  (xorg-configuration (keyboard-layout keyboard-layout))))
                
                           ;; This is the default list of services we
                           ;; are appending to.
                           %desktop-services))
                
                after
                  (services
                   (append (list (service lxqt-desktop-service-type)
                
                                 ;; To configure OpenSSH, pass an 'openssh-configuration'
                                 ;; record as a second argument to 'service' below.
                                 (service openssh-service-type)
                                 (set-xorg-configuration
                                  (xorg-configuration (keyboard-layout keyboard-layout))))
                
                           ;; This is the default list of services we
                           ;; are appending to.
                           (modify-services %desktop-services
                                        (gdm-service-type config =>
                                                   (gdm-configuration
                                                     (inherit config)
                                                     (wayland? #f)
                                                     )
                                          )
                              )
                
                ))
                
                • juipeltje
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  7 hours ago

                  Hmm, that does look correct and if it reconfigured without errors it’s probably alright. Another thing you could try is run ls /var/log and see if there’s an entry for gdm. If there is you could cat the log file and see what it says

                  • Skullgrid
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    5 hours ago

                    It looks like there are some device failures and it’s missing (EE) Failed to load module "qxl" (module does not exist, 0)

                    Full log : https://pastebin.com/9YDiEpiN

                    once again thanks for your time and efforts. I appreciate your help.

              • Skullgrid
                link
                fedilink
                arrow-up
                2
                ·
                2 days ago

                I’ll give it a go at some point and get back to you in this thread and share what happened. Thanks for this advice anyway.

          • Skullgrid
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            I haven’t tried to be honest, since it defeats the entire purpose of fucking around with Guix. I made a few posts on this, but I just fuck around with VMs when I haven’t done a “technical” activity to avoid feeling like a useless jackass, and one of the distros I wanted to learn about is Guix.

            If I want to run guix install lxqt I can. But why would I want to use Guix to have a user with a certain desktop environment? I want to be able to set up machines at the drop of a hat that are all the same all the time, and I want the machine to be all the same, not the user.

            • MaskedNybbles@piefed.social
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              2 days ago

              For anyone else reading, I stupidly deleted my comment where I asked more-or-less the following (sorry):

              This might be a stupid question, as I am unfamiliar with GUIX/Nix and am unlikely to be able to help, but what happens when you try to run LXQt from the CLI?