mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-28 03:37:06 +02: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
|
# 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
|
# mount a webdav share
|
||||||
# https://wiki.archlinux.org/title/Davfs2
|
# https://wiki.archlinux.org/title/Davfs2
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ in
|
|||||||
|
|
||||||
"/var/log"
|
"/var/log"
|
||||||
|
|
||||||
|
# preserve davfs2 driver's cache to avoid large memory usage
|
||||||
|
"/var/cache/davfs2"
|
||||||
|
|
||||||
# system-core
|
# system-core
|
||||||
"/var/lib/nixos"
|
"/var/lib/nixos"
|
||||||
"/var/lib/systemd"
|
"/var/lib/systemd"
|
||||||
|
|||||||
Reference in New Issue
Block a user