help-guix
[Top][All Lists]
Advanced

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

Working Configuration for Wayland Auto-Login?


From: yasu
Subject: Working Configuration for Wayland Auto-Login?
Date: Sat, 26 Dec 2020 10:30:24 +0900
User-agent: Evolution 3.34.2

Hi!

Does anyone have a working example configuration that enables Wayland
Auto-Login?

I tried to use:
  (auto-login-user "yasu")
  (auto-login-session "gnome.desktop")

by guessing from the description at: 
https://guix.gnu.org/manual/en/html_node/X-Window.html

But whenever I added those below the remember-last-user? line at:

              (service sddm-service-type
                       (sddm-configuration
                         (display-server "wayland")
                         (remember-last-user? #t)
                         ))

The session changed to X11, and was not Wayland anymore.

I have just noticed that Wayalnd is way faster than X11 for my terminal
program Kitty.   The mouse cursor seems much smoother as well.

Let me paste my system description at the bottom.

Cheers,
Yasu



~$ guix system describe
Generation 5664 Dec 26 2020 09:55:34    (current)
  file name: /var/guix/profiles/system-5664-link
  canonical file name: /gnu/store/yxyrcf7vwlvkmi8y3znwcpas8gflqw1k-
system
  label: GNU with Linux 5.9.16
  bootloader: grub-efi
  root device: label: "my-root"
  kernel: /gnu/store/vniw1mkx65g3hv6y371m88lvhg588yap-linux-
5.9.16/bzImage
  channels:
    guix:
      repository URL: https://github.com/guix-mirror/guix.git
      branch: master
      commit: 9302c28cbccbb245410224a3e860f7d2ef55d29d
    nonguix:
      repository URL: https://gitlab.com/nonguix/nonguix
      branch: master
      commit: 89d954d7bad819cb0ce0a42aed2a3f731622f5d1
    guix-chromium:
      repository URL: https://gitlab.com/mbakke/guix-chromium.git
      branch: master
      commit: 2de450b92e5f2624d4f964407686934e22239f7b
  configuration file: /gnu/store/i206zp7v0nyjmj0bc6pvcspxdwq2x5gw-
configuration.scm


~$ cat /gnu/store/i206zp7v0nyjmj0bc6pvcspxdwq2x5gw-configuration.scm
(use-modules
  (gnu)
  (gnu system nss)
  (gnu services sddm)
  (srfi srfi-1)

  (nongnu packages linux)
  (nongnu system linux-initrd)
  )

(use-service-modules desktop xorg)
(use-package-modules certs gnome)

(operating-system

  (kernel linux)
  (initrd microcode-initrd)
  (firmware (list linux-firmware))

  (host-name "guix")
  (timezone "Asia/Tokyo")
  (locale "en_US.utf8")

  (sudoers-file
    (plain-file "sudoers"
                (string-append (plain-file-content %sudoers-
specification)
                               "yasu ALL = NOPASSWD: ALL\n")))

  (keyboard-layout (keyboard-layout "us"))

  (bootloader (bootloader-configuration
                (bootloader grub-efi-bootloader)
                (target "/boot/efi")
                (keyboard-layout keyboard-layout)))

  (file-systems (append
                  (list (file-system
                          (device (file-system-label "my-root"))
                          (mount-point "/")
                          (type "ext4")
                          )
                        (file-system
                          (device (uuid "C2D0-0B91" 'fat))
                          (mount-point "/boot/efi")
                          (type "vfat")))
                  %base-file-systems))
  (swap-devices (list "/dev/nvme0n1p3"))

  (users (cons (user-account
                 (name "yasu")
                 (comment "yasu")
                 (group "users")
                 (supplementary-groups '("wheel" "netdev"
                                         "audio" "video")))
               %base-user-accounts))

  (packages (append (list
                      ;; for HTTPS access
                      nss-certs
                      ;; for user mounts
                      gvfs)
                    %base-packages))

  (services (cons*
              (service gnome-desktop-service-type)
              (service sddm-service-type
                       (sddm-configuration
                         (display-server "wayland")
                         (remember-last-user? #t)
                         ))

              (modify-services
                (remove (lambda (service)
                                (member (service-kind service)
                                        (list gdm-service-type)))
                        %desktop-services) ;end of remove lambda
services

                )       ;;end of modify-services
              ))        ;;end of services

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))




reply via email to

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