summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-09 16:02:52 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-09 16:02:52 +0200
commit2a951699f83b0969c7eccb277289b1c7c1305ec7 (patch)
treefecf8512db4b4e91b2a76c2ee72f3017743689ab
parent9b5d7e1b95ac2fb99df0ac14421f4a63e73d4dc8 (diff)
downloadnixos-2a951699f83b0969c7eccb277289b1c7c1305ec7.tar
nixos-2a951699f83b0969c7eccb277289b1c7c1305ec7.tar.gz
nixos-2a951699f83b0969c7eccb277289b1c7c1305ec7.tar.bz2
nixos-2a951699f83b0969c7eccb277289b1c7c1305ec7.tar.xz
nixos-2a951699f83b0969c7eccb277289b1c7c1305ec7.zip
automount doesn't help
-rw-r--r--custom/lvm-snapshots.nix13
1 files changed, 0 insertions, 13 deletions
diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix
index 9ac42f30..7d6cb8f2 100644
--- a/custom/lvm-snapshots.nix
+++ b/custom/lvm-snapshots.nix
@@ -114,18 +114,5 @@ in {
114 where = snapshotMount name; 114 where = snapshotMount name;
115 what = "/dev/" + scfg.VG + "/" + snapshotName name; 115 what = "/dev/" + scfg.VG + "/" + snapshotName name;
116 }) cfg.snapshots; 116 }) cfg.snapshots;
117
118 systemd.automounts = mapAttrsToList (name: scfg: {
119 enable = true;
120
121 wantedBy = [ "default.target" ];
122
123 automountConfig = {
124 TimeoutIdleSec = "5";
125 DirectoryMode = "0700";
126 };
127
128 where = snapshotMount name;
129 }) cfg.snapshots;
130 }; 117 };
131} 118}