I want to mount a webdav folder as a systemd user unit.
I found this much so far:
systemd.user.mounts.“home-${username}-server-name” = {
Unit = {
Description = “Mount my webdav storage”;
DefaultDependencies=“no”;
Conflicts = [“umount.target”];
After = [“network-online.target”];
Before=[“local-fs.target” “umount.target”];
};
Mount = {
What = “http://my-server”;
Where = "/home/${username}/server-name
Type = “davfs”;
};
};
I have a (stateful) password file on the client machine. How do I supply that information to the service?