summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-19 09:03:04 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-19 09:03:04 +0200
commit5625fe99777671471a4738cfa783b4a878a0f109 (patch)
tree3997f44deda991e212842dff9afc4f4c5de3f2ee
parentfcbee37431eef7ee7230e20a3e466ce2cedac2d6 (diff)
downloadnixos-5625fe99777671471a4738cfa783b4a878a0f109.tar
nixos-5625fe99777671471a4738cfa783b4a878a0f109.tar.gz
nixos-5625fe99777671471a4738cfa783b4a878a0f109.tar.bz2
nixos-5625fe99777671471a4738cfa783b4a878a0f109.tar.xz
nixos-5625fe99777671471a4738cfa783b4a878a0f109.zip
export eos
-rw-r--r--odin.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/odin.nix b/odin.nix
index 55aea5a9..790958b0 100644
--- a/odin.nix
+++ b/odin.nix
@@ -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 {