chore(idols-ai): drop the davfs WebDAV fileshare mount

davfs2 caches the whole opened file regardless of cache_size, so opening media on /mnt/fileshare downloads it fully and blocks the mount. The share is no longer used.
This commit is contained in:
Ryan Yin committed 2026-09-26 23:47:29 +08:00
1 parent c1b590b31b
commit 853747425f
4 files changed
-49

No files matched your search

-1
View File
@@ -24,7 +24,6 @@ in
# disks
./disko-fs.nix
./disko-fs-data.nix
./netdev-mount.nix
# Include the results of the hardware scan.
./hardware-configuration.nix
-39
View File
@@ -1,39 +0,0 @@
{
config,
...
}:
{
# enable davfs2 driver for webdav
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
fileSystems."/mnt/fileshare" = {
device = "https://webdav.writefor.fun/";
fsType = "davfs";
options = [
# https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html
"nofail"
"_netdev" # Wait for network
"rw"
"uid=1000,gid=100,dir_mode=0750,file_mode=0750"
];
};
# davfs2 reads its credentials from /etc/davfs2/secrets
environment.etc."davfs2/secrets" = {
source = config.age.secrets."davfs-secrets".path;
mode = "0600";
};
}
-3
View File
@@ -48,9 +48,6 @@ in
"/var/log"
# preserve davfs2 driver's cache to avoid large memory usage
"/var/cache/davfs2"
# system-core
"/var/lib/nixos"
"/var/lib/systemd"
-6
View File
@@ -101,12 +101,6 @@ in
# Used only by NixOS Modules
# referenced in /etc/fstab to mount davfs volume
"davfs-secrets" = {
file = "${mysecrets}/davfs-secrets.age";
}
// high_security;
"rclone.conf" = {
file = "${mysecrets}/rclone.conf.age";
}