dacbert: try enabling fscache for nfs

This commit is contained in:
Astro 2024-02-22 13:10:24 +01:00
parent bae9f09dda
commit c849d7c36e
2 changed files with 7 additions and 1 deletions

View File

@ -107,7 +107,7 @@ in
fileSystems."/" = {
device = "${hostRegistry.nfsroot.ip4}:/var/lib/nfsroot/dacbert";
fsType = "nfs";
options = [ "nfsvers=3" "proto=tcp" "nolock" "hard" "async" "rw" ];
options = [ "nfsvers=3" "proto=tcp" "nolock" "hard" "async" "rw" "fsc" ];
};
networking = {

View File

@ -76,4 +76,10 @@
echo "dwc_otg.lpm_enable=0 init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}" > $out/cmdline.txt
'';
# NFS caching
services.cachefilesd = {
enable = true;
cacheDir = "/tmp/fscache";
};
}