diff options
-rw-r--r-- | vali.nix | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -161,4 +161,23 @@ rec { | |||
161 | HibernateMode=shutdown platform | 161 | HibernateMode=shutdown platform |
162 | ''; | 162 | ''; |
163 | }; | 163 | }; |
164 | |||
165 | systemd.automounts= [ | ||
166 | { enable = true; | ||
167 | automountConfig = { | ||
168 | Where = "/var/media"; | ||
169 | DirectoryMode = "555"; | ||
170 | }; | ||
171 | } | ||
172 | ]; | ||
173 | |||
174 | systemd.mounts = [ | ||
175 | { enable = true; | ||
176 | What = "gkleen@hel.asgard.yggdrasil:/var/media"; | ||
177 | Where = "/var/media"; | ||
178 | Type = "fuse.sshfs"; | ||
179 | Options = "users,idmap=gkleen,IdentityFile=/home/user/.ssh/id_ed25519,allow_other,reconnect,_netdev"; | ||
180 | DirectoryMode = "555"; | ||
181 | } | ||
182 | ]; | ||
164 | } | 183 | } |