diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 16:02:52 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 16:02:52 +0200 |
| commit | 2a951699f83b0969c7eccb277289b1c7c1305ec7 (patch) | |
| tree | fecf8512db4b4e91b2a76c2ee72f3017743689ab /custom | |
| parent | 9b5d7e1b95ac2fb99df0ac14421f4a63e73d4dc8 (diff) | |
| download | nixos-2a951699f83b0969c7eccb277289b1c7c1305ec7.tar nixos-2a951699f83b0969c7eccb277289b1c7c1305ec7.tar.gz nixos-2a951699f83b0969c7eccb277289b1c7c1305ec7.tar.bz2 nixos-2a951699f83b0969c7eccb277289b1c7c1305ec7.tar.xz nixos-2a951699f83b0969c7eccb277289b1c7c1305ec7.zip | |
automount doesn't help
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/lvm-snapshots.nix | 13 |
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 | } |
