chore: preserve davfs2 driver's cache to avoid large memory usage

This commit is contained in:
Ryan Yin
2026-03-20 00:06:50 +08:00
parent 2f777ff38f
commit be9be72aff
2 changed files with 16 additions and 1 deletions

View File

@@ -4,7 +4,19 @@
}:
{
# enable davfs2 driver for webdav
services.davfs2.enable = true;
services.davfs2 = {
enable = true;
# https://man.archlinux.org/man/davfs2.conf.5
settings = {
globalSection.use_locks = true;
sections = {
"/mnt/fileshare" = {
# try to get this information from all files in a directory with one PROPFIND request.
gui_optimize = true;
};
};
};
};
# mount a webdav share
# https://wiki.archlinux.org/title/Davfs2

View File

@@ -48,6 +48,9 @@ in
"/var/log"
# preserve davfs2 driver's cache to avoid large memory usage
"/var/cache/davfs2"
# system-core
"/var/lib/nixos"
"/var/lib/systemd"