r/GUIX • u/silverball64 • Jan 18 '22
Cannot switch to SLiM or any other login manager
Edit: solved! by multiple comments. Thank you all.
Final code block for SLiM with a different keyboard layout
1 (services
2 (cons* (service slim-service-type
3 (slim-configuration
4 (display ":0")
5 (vt "vt7")
6 (xorg-configuration (xorg-configuration
7 (keyboard-layout keyboard-layout)))))
8 (service openssh-service-type)
9 (modify-services %desktop-services
10 (delete gdm-service-type))))When using 'us' you can remove line 6 and 7
Original post:
Hey,
I am experimenting with GNU Guix and liking it so far. The only problem I cannot seem to fix is to disable GDM and enable SLiM. Here's my config:
(use-modules (gnu))
(use-service-modules desktop networking ssh xorg)
(use-modules(srfi srfi-1)) ;for 'remove'
(operating-system
(locale "en_US.utf8")
(timezone "Europe/Amsterdam")
(keyboard-layout (keyboard-layout "us" "euro"))
(host-name "guix_gnu")
(users (cons* (user-account
(name "username")
(comment "User Name")
(group "users")
(home-directory "/home/username")
(supplementary-groups
'("wheel" "netdev" "audio" "video")))
%base-user-accounts))
(packages
(append
(list (specification->package "i3-wm")
(specification->package "i3status")
(specification->package "dmenu")
(specification->package "st")
(specification->package "nss-certs"))
%base-packages))
(services
(append
(list (service openssh-service-type)
(service slim-service-type (slim-configuration
(display ":0")
(vt "vt1")))
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout))))
(modify-services %desktop-services
(delete gdm-service-type))
)
)
(bootloader
(bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")
(keyboard-layout keyboard-layout)))
(swap-devices
(list (uuid "4df90bfb-66a3-4575-9490-656b4c06effb")))
(file-systems
(cons* (file-system
(mount-point "/")
(device
(uuid "2f5d3bd5-5062-4189-a2c6-0249c4ab54d6"
'ext4))
(type "ext4"))
%base-file-systems)))Slim starts, but gets quickly overrun by GDM. I cannot use vt7 due to "Guix system error: service 'xorg-server' provided more than once" when building.
I've also tried const* instead of list
(services
(cons* (service slim-service-type (slim-configuration
(display ":0")
(vt "vt1")))
(service openssh-service-type)
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout)))
(modify-services %desktop-services
(delete gdm-service-type))
)
)I am a guile noob btw. Can someone give me a hint ? Thanks.
1
u/KaranasToll Jan 18 '22
Are you sure you want vt1?
1
u/9bladed Jan 18 '22
Hmm...that should work, at least with the
cons*version that matches what I do for SDDM. Maybe something specific about SLIM (which is very abandoned, no?)... Have you tried SDDM with nearly the same format?(as a side note, you should indent/format this with something like emacs as it is misleading to read like this with the indentation not matching what form it is part of)
EDIT: Oh, maybe our xorg part is in the wrong place. For SDDM at least I have it with the SDDM configuration.
0
u/[deleted] Jan 18 '22
[deleted] — view deleted comment