From f629f917d3f30eae375fbb33e18fd014f6e89985 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 8 Jun 2025 12:23:23 +0200 Subject: nfs: enable caching --- config/storage.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 config/storage.nix (limited to 'config/storage.nix') diff --git a/config/storage.nix b/config/storage.nix new file mode 100644 index 0000000..a1461b1 --- /dev/null +++ b/config/storage.nix @@ -0,0 +1,18 @@ +{...}: { + boot.supportedFilesystems = ["nfs"]; + fileSystems."/data" = { + device = "ds411.aristote.mesh:/volume2/hephaistos"; + fsType = "nfs"; + options = [ + # lazy mounting + "x-systemd.automount" + "noauto" + # sleeping + "x-systemd.idle-timeout=600" + # caching + "fsc" + ]; + }; + + services.cachefilesd.enable = true; +} -- cgit v1.2.3