diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 15:56:21 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 15:56:21 +0200 |
commit | c91562f3acb0a5321fb771a30f605d3957c373a9 (patch) | |
tree | 667b26525e559aa40de76233e2d8d24afc1c3207 | |
parent | 11c139b5cb84f5f43b5126468a5603ac3651fd04 (diff) | |
download | nixos-c91562f3acb0a5321fb771a30f605d3957c373a9.tar nixos-c91562f3acb0a5321fb771a30f605d3957c373a9.tar.gz nixos-c91562f3acb0a5321fb771a30f605d3957c373a9.tar.bz2 nixos-c91562f3acb0a5321fb771a30f605d3957c373a9.tar.xz nixos-c91562f3acb0a5321fb771a30f605d3957c373a9.zip |
automount?
-rw-r--r-- | custom/lvm-snapshots.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix index a144f06a..45282d28 100644 --- a/custom/lvm-snapshots.nix +++ b/custom/lvm-snapshots.nix | |||
@@ -113,5 +113,16 @@ in { | |||
113 | where = snapshotMount name; | 113 | where = snapshotMount name; |
114 | what = "/dev/" + scfg.VG + "/" + snapshotName name; | 114 | what = "/dev/" + scfg.VG + "/" + snapshotName name; |
115 | }) cfg.snapshots; | 115 | }) cfg.snapshots; |
116 | |||
117 | systemd.automounts = mapAttrsToList (name: scfg: { | ||
118 | enable = true; | ||
119 | |||
120 | automountConfig = { | ||
121 | TimeoutIdleSec = "5"; | ||
122 | DirectoryMode = "0700"; | ||
123 | }; | ||
124 | |||
125 | where = snapshotMount name; | ||
126 | }) cfg.snapshots; | ||
116 | }; | 127 | }; |
117 | } | 128 | } |