(use-modules
...
(gnu packages file-systems)
...)
...
(operating-system
...
(file-systems
(cons*
...
(file-system
(mount-point "/mnt/cloud")
(device "<webdav url like the one see above>")
(type "davfs")
(mount? #f)
(options "user"))
...))
...
(setuid-programs
(cons*
(setuid-program (program (file-append davfs2 "/sbin/mount.davfs"))))
%setuid-programs)))
then you gotta put
dav_group users
into /etc/davfs2/davfs.conf. Or like a davfs2 group but then you need to declare that as well obvs
Plus the files ~/.davfs2/davfs2.conf and ~/.davfs2/secrets need to be created manually for every user that wants to mount even if you don’t use them, they must exist and can’t be created automatically because of a bug in the package declaration.
I’ma create a patch if I can figure out how that works lol because some of the stuff in the package declaration of davfs2 dont make sense (to me at least).