diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-06-08 12:23:23 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2025-06-08 12:23:23 +0200 |
| commit | f629f917d3f30eae375fbb33e18fd014f6e89985 (patch) | |
| tree | c8870baeb7f9522cd7fd7054d1603f225b790648 /config/storage.nix | |
| parent | 30b663574954af6b393e2d15ad3c228fec23822c (diff) | |
nfs: enable caching
Diffstat (limited to 'config/storage.nix')
| -rw-r--r-- | config/storage.nix | 18 |
1 files changed, 18 insertions, 0 deletions
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; +} |
