diff --git a/hosts/dacbert/default.nix b/hosts/dacbert/default.nix index b0be343e..32a35783 100644 --- a/hosts/dacbert/default.nix +++ b/hosts/dacbert/default.nix @@ -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 = { diff --git a/modules/rpi-netboot.nix b/modules/rpi-netboot.nix index 6f6481ce..713fa848 100644 --- a/modules/rpi-netboot.nix +++ b/modules/rpi-netboot.nix @@ -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"; + }; }