services: pam-mount: Add support for sddm login manager.

I noticed that pam_mount mounts work fine when loging into a textual
session, but not when using sddm. This patch fixes this problem by
ensuring that pam_mount.so is included in /etc/pam.d/sddm config file.

* gnu/services/pam-mount.scm (pam-mount-pam-service): Add sddm to the list of
  pam services.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
This commit is contained in:
Nick Zalutskiy 2021-12-18 14:57:08 -05:00 committed by Guillaume Le Vaillant
parent 4af273e0a8
commit 757be0e8af
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -90,7 +90,7 @@ (define optional-pam-mount
(module #~(string-append #$pam-mount "/lib/security/pam_mount.so"))))
(list (lambda (pam)
(if (member (pam-service-name pam)
'("login" "su" "slim" "gdm-password"))
'("login" "su" "slim" "gdm-password" "sddm"))
(pam-service
(inherit pam)
(auth (append (pam-service-auth pam)