cachefilesd added for nfs caching

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