From a47c7511ea28e23f08ec96c4e999695189a74dd3 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 4 Sep 2016 19:05:37 +0200 Subject: first attempt at automounting /var/media on vali --- vali.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/vali.nix b/vali.nix index a1948421..500aa66b 100644 --- a/vali.nix +++ b/vali.nix @@ -161,4 +161,23 @@ rec { HibernateMode=shutdown platform ''; }; + + systemd.automounts= [ + { enable = true; + automountConfig = { + Where = "/var/media"; + DirectoryMode = "555"; + }; + } + ]; + + systemd.mounts = [ + { enable = true; + What = "gkleen@hel.asgard.yggdrasil:/var/media"; + Where = "/var/media"; + Type = "fuse.sshfs"; + Options = "users,idmap=gkleen,IdentityFile=/home/user/.ssh/id_ed25519,allow_other,reconnect,_netdev"; + DirectoryMode = "555"; + } + ]; } -- cgit v1.2.3