Ludovic Courtès skribis: > Hi Guillaume, > > I’ve applied the first two patches, thanks! > > Guillaume Le Vaillant skribis: > >> * gnu/services/pam-mount.scm: New file. >> * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. >> * doc/guix.texi (PAM Mount Service): New subsection. > > […] > >> +The @code{(gnu services pam-mount)} module provides a service allowing >> +users to mount volumes when they log in. It should be able to mount any >> +volume format supported by the system. > > How does one specify what needs to be mounted upon log-in of a specific > user? I’m new to PAM-Mount and I’m left wondering. :-) I added an example in the manual. >> Note that to automatically mount >> +encrypted volumes using the password the user entered to log in, the >> +@code{pam-mount} package must be added in the @code{packages} field of >> +the @code{operating-system} definition. > > Should we instead arrange so that the ‘pam-mount’ command (or whatever > it’s called) is automatically found, instead of asking users to add it > to ‘packages’? I found a way to have 'pam-mount' call directly '/gnu/store/...-pam-mount-.../sbin/mount.crypt' when necessary. So adding 'pam-mount' to 'packages' is not needed anymore. >> +(define %pam-mount-default-configuration >> + (plain-file "pam_mount.conf.xml" >> + " >> + >> + >> + >> +> +allow=\"nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other\" /> >> + >> + >> + >> +\n")) > > I suggest writing SXML instead and using ‘sxml->xml’, if you don’t > mind. :-) Done. >> +(define pam-mount-service-type >> + (service-type >> + (name 'pam-mount) >> + (extensions (list (service-extension etc-service-type >> + pam-mount-etc-service) >> + (service-extension pam-root-service-type >> + pam-mount-pam-service))) >> + (default-value (pam-mount-configuration)))) > > Please also add a ‘description’ field. Done. > Could you send an updated patch? > > Thanks! > > Ludo’. Updated patch attached.