mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-20 16:44:10 +01:00
chore: preserve davfs2 driver's cache to avoid large memory usage
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user