From cfb9db4907118ecddd4408d8ffd5ba114739415d Mon Sep 17 00:00:00 2001 From: Anish L Date: Wed, 10 Aug 2022 01:36:24 +1000 Subject: [PATCH] lazy automounting and idle disconnect for nfs mounted drives on curve --- hosts/curve/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/curve/default.nix b/hosts/curve/default.nix index f457340e..b98107e0 100644 --- a/hosts/curve/default.nix +++ b/hosts/curve/default.nix @@ -14,16 +14,19 @@ fileSystems."/mnt/ftp" = { device = "192.168.1.240:/home/ftp"; fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ]; }; fileSystems."/mnt/tv" = { device = "192.168.1.240:/mnt/three/tv"; fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ]; }; fileSystems."/mnt/movies" = { device = "192.168.1.240:/mnt/three/movies"; fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ]; }; boot.supportedFilesystems = [ "ntfs" ];