dacbert: try enabling fscache for nfs
This commit is contained in:
parent
bae9f09dda
commit
c849d7c36e
|
@ -107,7 +107,7 @@ in
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "${hostRegistry.nfsroot.ip4}:/var/lib/nfsroot/dacbert";
|
device = "${hostRegistry.nfsroot.ip4}:/var/lib/nfsroot/dacbert";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [ "nfsvers=3" "proto=tcp" "nolock" "hard" "async" "rw" ];
|
options = [ "nfsvers=3" "proto=tcp" "nolock" "hard" "async" "rw" "fsc" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
|
@ -76,4 +76,10 @@
|
||||||
|
|
||||||
echo "dwc_otg.lpm_enable=0 init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}" > $out/cmdline.txt
|
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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue