1 { config, pkgs, lib, ... }:
3 services.davfs2.enable = true;
4 users.users.sevy.extraGroups = [
5 config.services.davfs2.davGroup
7 fileSystems."/home/sevy/mnt/ilico/severine" = {
8 device = "https://nuage.ilico.org/remote.php/dav/files/severine/";
11 let conf = pkgs.writeText "davfs2.conf" ''
12 backup_dir /home/sevy/Documents/EnTransfert/ilico/severine
13 cache_dir /home/sevy/.cache/davfs2/ilico/severine
14 secrets /home/sevy/.davfs2/secrets
16 [ "conf=${conf}" "user" "noexec" "nosuid"
17 "noauto" "nofail" "_netdev" "reconnect"
19 "x-systemd.device-timeout=1m"
20 "x-systemd.idle-timeout=1m"
21 "x-systemd.mount-timeout=10s"