From 721387045b261c024e5e8e41ae3321e2ad415cbb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 9 Aug 2017 19:08:13 +0200 Subject: automount timeouts --- bragi.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'bragi.nix') diff --git a/bragi.nix b/bragi.nix index ba9d6ab2..caa30403 100644 --- a/bragi.nix +++ b/bragi.nix @@ -75,9 +75,20 @@ in rec { }; systemd.automounts = [ - { wantedBy = [ "multi-user.target" ]; where = "/media/odin"; } - { wantedBy = [ "multi-user.target" ]; where = "/media/dellingr"; } - { wantedBy = [ "multi-user.target" ]; where = "/media/vali"; } + { + wantedBy = [ "multi-user.target" ]; + where = "/media/odin"; + } + { + wantedBy = [ "multi-user.target" ]; + where = "/media/dellingr"; + automountConfig.TimoutIdleSec = "30s"; + } + { + wantedBy = [ "multi-user.target" ]; + where = "/media/vali"; + automountConfig.TimoutIdleSec = "5min"; + } ]; systemd.mounts = [ -- cgit v1.2.3