diff options
-rw-r--r-- | odin.nix | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -200,6 +200,14 @@ | |||
200 | "valid users" = "%S"; | 200 | "valid users" = "%S"; |
201 | writable = true; | 201 | writable = true; |
202 | }; | 202 | }; |
203 | |||
204 | eos = { | ||
205 | comment = "Disk image of eos"; | ||
206 | browseable = true; | ||
207 | "valid users" = "mherold"; | ||
208 | writable = true; | ||
209 | path = "/srv/eos"; | ||
210 | }; | ||
203 | }; | 211 | }; |
204 | extraConfig = '' | 212 | extraConfig = '' |
205 | domain master = true | 213 | domain master = true |
@@ -211,6 +219,23 @@ | |||
211 | ''; | 219 | ''; |
212 | }; | 220 | }; |
213 | 221 | ||
222 | fileSystems."/srv/eos.lower" = { | ||
223 | device = "/dev/disk/by-uuid/2A3052E73052BA11"; | ||
224 | fsType = "ntfs-3g"; | ||
225 | options = ["ro" "uid=1001" "gid=100" "fmask=0177" "dmask=0077" "permissions"]; | ||
226 | }; | ||
227 | |||
228 | systemd.mounts = [ | ||
229 | { | ||
230 | where = "/srv/eos"; | ||
231 | what = "overlay"; | ||
232 | options = concatStringsSep "," [ "lowerdir=/srv/eos.lower" | ||
233 | "upperdir=/home/mherold/.eos.upper" | ||
234 | "workdir=/home/mherold/.eos.work" | ||
235 | ]; | ||
236 | } | ||
237 | ]; | ||
238 | |||
214 | services.motion = { | 239 | services.motion = { |
215 | cameras = [ | 240 | cameras = [ |
216 | { | 241 | { |