cachefilesd added for nfs caching

This commit is contained in:
2025-07-23 12:28:28 +02:00
parent 3c112bd0d4
commit e773124fae
+8 -4
View File
@@ -1,12 +1,16 @@
{ config, pkgs, ... }: {
# Add ZFS and NFS support to the initramfs so it can be mounted at boot.
# Add NFS support to the initramfs so it can be mounted at boot.
boot.supportedFilesystems = [ "nfs" ];
services.cachefilesd = {
enable = true;
cacheDir = "/data/cache";
};
systemd.mounts = [{
type = "nfs";
mountConfig = {
Options = "noatime";
Options = "noatime,fsc";
};
what = "${config.vars.nfs_server}:${config.vars.nfs_volume}";
where = config.vars.nfs_mount;
@@ -20,4 +24,4 @@
where = config.vars.nfs_mount;
}];
}
}