unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Working Configuration for Wayland Auto-Login?
@ 2020-12-26  1:30 yasu
  2020-12-26 21:10 ` Joshua Branson
  2020-12-26 21:27 ` Tobias Geerinckx-Rice
  0 siblings, 2 replies; 3+ messages in thread
From: yasu @ 2020-12-26  1:30 UTC (permalink / raw)
  To: help-guix@gnu.org

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))



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Working Configuration for Wayland Auto-Login?
  2020-12-26  1:30 Working Configuration for Wayland Auto-Login? yasu
@ 2020-12-26 21:10 ` Joshua Branson
  2020-12-26 21:27 ` Tobias Geerinckx-Rice
  1 sibling, 0 replies; 3+ messages in thread
From: Joshua Branson @ 2020-12-26 21:10 UTC (permalink / raw)
  To: yasu; +Cc: help-guix@gnu.org


I would also be interested in figuring this out.  I have half of the
solution:

I currently login to a virtual console, then have .bash_profile start
sway:

#+BEGIN_SRC sh
# Honor per-interactive-shell startup file
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi

# shepherd

if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
    export MOZ_ENABLE_WAYLAND=1
    export GUIX_PACKAGE_PATH=/home/joshua/prog/gnu/guix/guix-packages/
    XDG_DATA_DIRS=/var/lib/flatpak/exports/share:/home/joshua/.local/share/flatpak/exports/share:$XDG_DATA_DIRS
    # this may fix a bug that I have with termite confusing backspace as space in guix environment
    # export TERM=linux
    shepherd -c /home/joshua/.config/shepherd/init.scm &
    exec dbus-run-session sway
fi
#+END_SRC

--
Joshua Branson
Sent from Emacs and Gnus
  https://gnucode.me
  https://video.hardlimit.com/accounts/joshua_branson/video-channels
  https://propernaming.org
  "You can have whatever you want, as long as you help

enough other people get what they want." - Zig Ziglar


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Working Configuration for Wayland Auto-Login?
  2020-12-26  1:30 Working Configuration for Wayland Auto-Login? yasu
  2020-12-26 21:10 ` Joshua Branson
@ 2020-12-26 21:27 ` Tobias Geerinckx-Rice
  1 sibling, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-12-26 21:27 UTC (permalink / raw)
  To: yasu; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

Yasu,

yasu 写道:
> Does anyone have a working example configuration that enables 
> Wayland
> Auto-Login?

Yes:

   (service sddm-service-type
     ;; Logs to ~/.local/share/sddm/wayland-session.log.
     (sddm-configuration
       (auto-login-user "nckx") (relogin? #t)
       (auto-login-session "sway.desktop")
       (display-server "wayland")
       (minimum-vt 1)
       (xorg-configuration
         (xorg-configuration
           (keyboard-layout keyboard-layout)))))

It's not clear to me why your example didn't work, but I don't use 
the gnome.desktop.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-26 21:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-26  1:30 Working Configuration for Wayland Auto-Login? yasu
2020-12-26 21:10 ` Joshua Branson
2020-12-26 21:27 ` Tobias Geerinckx-Rice

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).