From 5625fe99777671471a4738cfa783b4a878a0f109 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 19 Apr 2018 09:03:04 +0200 Subject: export eos --- odin.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/odin.nix b/odin.nix index 55aea5a9..790958b0 100644 --- a/odin.nix +++ b/odin.nix @@ -200,6 +200,14 @@ "valid users" = "%S"; writable = true; }; + + eos = { + comment = "Disk image of eos"; + browseable = true; + "valid users" = "mherold"; + writable = true; + path = "/srv/eos"; + }; }; extraConfig = '' domain master = true @@ -211,6 +219,23 @@ ''; }; + fileSystems."/srv/eos.lower" = { + device = "/dev/disk/by-uuid/2A3052E73052BA11"; + fsType = "ntfs-3g"; + options = ["ro" "uid=1001" "gid=100" "fmask=0177" "dmask=0077" "permissions"]; + }; + + systemd.mounts = [ + { + where = "/srv/eos"; + what = "overlay"; + options = concatStringsSep "," [ "lowerdir=/srv/eos.lower" + "upperdir=/home/mherold/.eos.upper" + "workdir=/home/mherold/.eos.work" + ]; + } + ]; + services.motion = { cameras = [ { -- cgit v1.2.3