summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-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}